Infinite arrays
Arrays can therefore be infinite
> my @a = 100..Inf; > say @a[10]; 110 > say @a[15..20] 115 116 117 118 119 120continued...
Perl 6 | Perl 6 Lists and Arrays vivified | #31 |
Arrays can therefore be infinite
> my @a = 100..Inf; > say @a[10]; 110 > say @a[15..20] 115 116 117 118 119 120continued...
Copyright © 2012 http://www.pmichaud.com/2012/pres/ |