# New Ticket Created by Nick Wellnhofer
# Please include the string: [perl #133017]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=133017 >
When using a reduction operator with the "intermediate results" option
combined with a zip operator, e.g. [\Z+], the first intermediate value is wrong:
say [\Z+] (1, 2, 3), (10, 20, 30), (100, 200, 300);
# got: ((6) (11 22 33) (111 222 333))
# expected: ((1 2 3) (11 22 33) (111 222 333))
Reduction with hyper operators like [\<<+>>] seems to work.
Only tested online on tio.run
Rakudo version 2017.12 built on MoarVM version 2017.12
implementing Perl 6.c.
and code-golf.io:
Rakudo version 2018.03 built on MoarVM version 2018.03
implementing Perl 6.c
Nick