Perl 6 Perl 6 Lists and Arrays vivified #42

Array vs. List

> my $fruit = 'apple';
> my @array = (0, 1, $fruit);       # an Array
> @array[2] = 'cherry'; 
> say $fruit;                 
apple
continued...
Copyright © 2012
http://www.pmichaud.com/2012/pres/