Re: Reverse .. operator

2004-09-10 Thread David Storrs
On Fri, Sep 03, 2004 at 08:09:23AM -0400, Joe Gottman wrote: > > > > -Original Message- > > From: Larry Wall [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 02, 2004 8:41 PM > > To: Perl6 > > Subject: Re: Reverse .. operator > > > &g

Re: Reverse .. operator

2004-09-07 Thread John Macdonald
> Sent: Thursday, September 02, 2004 8:41 PM > > To: Perl6 > > Subject: Re: Reverse .. operator > > > > On Thu, Sep 02, 2004 at 08:34:22PM -0400, Joe Gottman wrote: > > : Is there similar shorthand to set @foo = (5, 3, 3, 2, 1) ? I know you > > can > &g

Re: Reverse .. operator

2004-09-06 Thread Piers Cawley
"Joe Gottman" <[EMAIL PROTECTED]> writes: > In perl 6, the statement > > @foo = (1.. 5) ; > > is equivalent to > > @foo = (1, 2, 3, 4, 5); > > > > Is there similar shorthand to set @foo = (5, 3, 3, 2, 1) ? I know you can > go > > @foo = reverse (1

RE: Reverse .. operator

2004-09-03 Thread Joe Gottman
> -Original Message- > From: Larry Wall [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 02, 2004 8:41 PM > To: Perl6 > Subject: Re: Reverse .. operator > > On Thu, Sep 02, 2004 at 08:34:22PM -0400, Joe Gottman wrote: > : Is there similar shorthand to s

Re: Reverse .. operator

2004-09-02 Thread Larry Wall
On Thu, Sep 02, 2004 at 08:34:22PM -0400, Joe Gottman wrote: : Is there similar shorthand to set @foo = (5, 3, 3, 2, 1) ? I know you can : go : : @foo = reverse (1 ..5); : : but this has the major disadvantage that it cannot be evaluated lazily; : reverse has to see the entire list b

Reverse .. operator

2004-09-02 Thread Joe Gottman
In perl 6, the statement @foo = (1.. 5) ; is equivalent to @foo = (1, 2, 3, 4, 5); Is there similar shorthand to set @foo = (5, 3, 3, 2, 1) ? I know you can go @foo = reverse (1 ..5); but this has the major disadvantage that it cannot be eval