https://pantsbuild.org/ logo
h

hundreds-breakfast-49010

10/04/2019, 6:20 PM
I guess by the time the
Map<Map<_, _>>
object has
collect(self)
called on it, that object is encapsulating the original iterable + all the possible lambdas called on it, so it has the ability to only iterate over the orginal iterable once