Use Iterator::all
instead of open-coding it
#82030
Merged
Iterator::all
instead of open-coding it
#82030