Perl 6 Perl 6 Lists, Arrays, and Hashes vivified #33

Eagerness

The opposite of laziness is "eagerness"

Use eager to ask a list to reify (generate) as much as it can

my @words = < postmodern modern romantic baroque classical >;
my $upwords = map { say "loop"; ucfirst $_ }, @words;
$upwords.eager;
say "Hello";

loop
loop
loop
loop
loop
Hello
Copyright © 2011
http://www.pmichaud.com/2011/pres/