More examples
> push @words, 'camelia' > @words.push('camelia') > say map { ucfirst $_ }, @words > say @words.map( { ucfirst $_ } ) > say @words.map: { ucfirst $_ } > say sort @words; > say @words.sort;
Perl 6 | Perl 6 Lists and Arrays vivified | #10 |
> push @words, 'camelia' > @words.push('camelia') > say map { ucfirst $_ }, @words > say @words.map( { ucfirst $_ } ) > say @words.map: { ucfirst $_ } > say sort @words; > say @words.sort;
Copyright © 2012 http://www.pmichaud.com/2012/pres/ |