Perl 6 Perl 6 Lists and Arrays vivified #33

A note about .elems

> say @a.elems;

The elems function tends to make things non-lazy

This includes unary + on arrays

my @words = < orange lime cherry banana lemon >;
my $upwords = map { say "loop"; ucfirst $_ }, @words;
say "Hello";
say $upwords.elems;

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