On 9/16/15, David H. Adler <d...@pobox.com> wrote: > So, how about this > > perl6 -e 'sub a {state @x; @x.push(++$)}; say a for 1..6;' > > [1] > [1 2] > &c
Even better, but how about 'for a..f'? That makes it clear that the list values are being used, not some sort of subscript. (The less ambiguity possible in an example, the better.)