On p.27, after “Found 2 names”, we read:
The filter() method returns an iterator just like the map() method does,
But it really returns a Stream
for further processing, not an iterator.
On p.27, after “Found 2 names”, we read:
The filter() method returns an iterator just like the map() method does,
But it really returns a Stream
for further processing, not an iterator.
You are correct that it returns a Stream but streams are internal iterators. Keeping the text as is.
Thank you.
Thank you,
Could one add a note that “stream” instances are also called “internal iterators”?
It is not fully evident to me.
Good suggestion. Will do. Thank you.