Re: doubt about sequence operator

2016-10-10 Thread Elizabeth Mattijsen
> On 10 Oct 2016, at 14:22, Luca Ferrari wrote: > Looking at I > cannot find an explaination of why the ending value of 10 is not > honored in the second case. Oops, missed that you already referenced the doc: It’s in

Re: doubt about sequence operator

2016-10-10 Thread Elizabeth Mattijsen
> On 10 Oct 2016, at 14:22, Luca Ferrari wrote: > > Hi all, > I'm misunderstanding the ... operator. The following works as expected: > >@seq = ( 1, 2, -> $a, $b { $a * 2 + $b % 2 } ... * )[^10]; > > while the following seems to loop infinitely: > >@seq = ( 1,

doubt about sequence operator

2016-10-10 Thread Luca Ferrari
Hi all, I'm misunderstanding the ... operator. The following works as expected: @seq = ( 1, 2, -> $a, $b { $a * 2 + $b % 2 } ... * )[^10]; while the following seems to loop infinitely: @seq = ( 1, 2, -> $a, $b { $a * 2 + $b % 2 } ... 10 ); Looking at