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 <https://docs.perl6.org/language/operators#infix_...> I
cannot find an explaination of why the ending value of 10 is not
honored in the second case.
Thanks,
Luca
