# build a hash of card names to point values my %points = @deck Z @( (2..10, 10, 10, 10, 11) >>xx>> 4 ); @( (2..10, 10, 10, 10, 11) >>xx>> 4 );
Perl 6 | Cool Perl 6 | #70 |
# build a hash of card names to point values my %points = @deck Z @( (2..10, 10, 10, 10, 11) >>xx>> 4 ); @( (2..10, 10, 10, 10, 11) >>xx>> 4 );
Copyright © 2010 http://www.pmichaud.com/2010/pres/ |