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

More examples

> push @words, 'fundamenta-List'

> @words.push('fundamenta-List')

 

> say map { ucfirst $_ }, @words

> say @words.map( { ucfirst $_ } )

> say @words.map: { ucfirst $_ }

 

> say sort @words;

> say @words.sort;
Copyright © 2011
http://www.pmichaud.com/2011/pres/