Closed
Description
The documentation of Iterator#map
explains the lazy nature correctly, once you know about iterator laziness already. However, the implications for side-effecting applications of map
can surprise developers new to Scala (as it did surprise me)
An aside on the implications of laziness in the Iterator overview docs would be very helpful.