Consider
.say for (1,2,2).rotor(2=>-1).map( -> ($a, $b) { $a - $b })
which works as expected. However,
.say for (1,2,2).pairs.rotor(2=>-1).map( -> ($a, $b) { $a.value - $b.value })
throws
Too few positionals passed to '<anon>'; expected 2 arguments but got 0 in sub-signature
Is this a bug or am I missing something?
This is Rakudo Star version 2019.03.1 built on MoarVM version 2019.03 implementing Perl 6.d.