Infinite lists
Laziness enables "infinite lists"
Recall the Range generator from before:
> my $r = 100..200; > say $r.reify(5).perl; (100, 101, 102, 103, 104, 105..200) > my $r = 100..200;
Perl 6 | Perl 6 Lists, Arrays, and Hashes vivified | #28 |
Laziness enables "infinite lists"
Recall the Range generator from before:
> my $r = 100..200; > say $r.reify(5).perl; (100, 101, 102, 103, 104, 105..200) > my $r = 100..200;
Copyright © 2011 http://www.pmichaud.com/2011/pres/ |