Note: Proposing to put this *above* repeat/while / repeat/until.
https://gist.github.com/dha/0a0736b9da74a8e61e49
dha
--
David H. Adler - - http://www.panix.com/~dha/
A feature is often a bug with seniority.- Chip Salzenberg
On Tue, Sep 15, 2015 at 11:28:59AM -0500, andy_b...@wiwb.uscourts.gov wrote:
> [1 1 1 1]
> next
> [1 1 1 1 1 1]
> next
> [1 1 1 1 1 1 1 1]
>
> vs
>
> [1 2 3]
> next
> [1 2 3 3]
> next
> [1 2 3 3 3]
>
> I think the latter is clearer, though perhaps the problem is the original
> code is a bit
On 9/16/15, David H. Adler wrote:
> So, how about this
>
> perl6 -e 'sub a {state @x; @x.push(++$)}; say a for 1..6;'
>
> [1]
> [1 2]
>
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
On Wed, Sep 16, 2015 at 04:42:27PM -0400, Parrot Raiser wrote:
> On 9/16/15, David H. Adler wrote:
>
> > So, how about this
> >
> > perl6 -e 'sub a {state @x; @x.push(++$)}; say a for 1..6;'
> >
> > [1]
> > [1 2]
> >
>
> Even better, but how about 'for a..f'? That makes it