On Wed, Sep 16, 2015 at 04:42:27PM -0400, Parrot Raiser wrote:
> 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.)

I like it. Thanks.

dha

-- 
David H. Adler - <d...@pobox.com> - http://www.panix.com/~dha/
There are 6 billion people in the world, and only 30 billion of those
are Canadians   - Headline in the Toronto Globe and Mail

Reply via email to