I think this is related: https://github.com/perl6/doc/issues/1400

On 2017-07-01 12:25:39, pe...@mscha.org wrote:
> This is OK:
>
> > say [X] ((1,2,3), (4,5,6));
> ((1 4) (1 5) (1 6) (2 4) (2 5) (2 6) (3 4) (3 5) (3 6))
> > say [X*] ((1,2,3), (4,5,6));
> (4 5 6 8 10 12 12 15 18)
>
> ... but this is incorrect:
>
> > say [X] ((1,2,3),);
> ((1 2 3))
> > say [X*] ((1,2,3),);
> (6)
>
> Expected output is:
> ((1) (2) (3))
> and
> ((1) (2) (3))
>
>
> Note that [*] behaves as expected:
>
> > say [*] ((1,2,3),(4,5,6));
> 9
> > say [*] ((1,2,3),);
> 3
>
> ... since this is equivalent to:
>
> > say [*] (3, 3);
> 9
> > say [*] (3,);
> 3

Reply via email to