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

A note about .elems

> say @a.elems;

The elems function tends to make things non-lazy

This includes unary + on arrays

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

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