Perl 6 lazy list example #2
Example of laziness inaction:
my @words = < postmodern modern romantic baroque classical >; my $upwords = map { say "loop"; ucfirst $_ }, @words; say "Hello"; say $upwords[2];continued...
Perl 6 | Perl 6 Lists, Arrays, and Hashes vivified | #25 |
Example of laziness inaction:
my @words = < postmodern modern romantic baroque classical >; my $upwords = map { say "loop"; ucfirst $_ }, @words; say "Hello"; say $upwords[2];continued...
Copyright © 2011 http://www.pmichaud.com/2011/pres/ |