# New Ticket Created by mt1957
# Please include the string: [perl #129212]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129212 >
Hi,
I get the following error using version 2016.08.1-66-g1ff1aae built on
MoarVM version
I've just stumbled across "reversed operators", e.g. say 4 R/ 12; # 3
in the documentation. I'm curious to know why the language includes
them? I'm having trouble understanding where they would be useful.
$ perl6 -e 'my @numbers = 1..100; say [-] @numbers; say [R-] @numbers'
-5048
-4850
In general, it's kind of pointless with bare infix ops, as you can just
reverse the arguments, but when reducing or the like, it becomes much more
valuable.
On Tue, Sep 6, 2016 at 12:43 PM, Parrot Raiser
# New Ticket Created by Will Coleda
# Please include the string: [perl #129213]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129213 >
See attached files.
I have seen variations of this problem in 2016.07, .08, and just
Oh, and note that you can pass R'd reductions as if they were normal prefix
ops:
$ perl6 -e 'sub dueet(, *@list) { op @list }; say dueet :<[R-]>,
1..100'
-4850
On Tue, Sep 6, 2016 at 12:51 PM, Aaron Sherman
wrote:
>
>
> $ perl6 -e 'my @numbers = 1..100; say [-]