Perl 6 More laziness and lists #22

Iterator

 .reify($n) method requests generation of $n elements

Returns a Parcel of reified values and any subsequent iterators needed to generate remainder of list

An Iterator is allowed to reify fewer or greater elements than requested

Special values of $n include * and Inf

In general, most users don't have to interact directly with Iterator

They're usually managed internally inside of List objects

Copyright © 2012
http://www.pmichaud.com/2012/pres/