-
-
Save anonymous/17fbd409820a3da23724 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dotted postfix | |
{ | |
my (@r, @e); | |
(@r = (1, 4, 9))»++; | |
@e = (2, 5, 10); | |
is(~@r, ~@e, "operator call on integer list elements"); | |
(@r = (1, 4, 9)).»++; | |
is(~@r, ~@e, "operator call on integer list elements (Same thing, dot form)"); | |
#?rakudo skip 'hyper dot postfix form does not work currently' | |
{ | |
(@r = (1, 4, 9))».++; | |
@e = (2, 5, 10); | |
is(~@r, ~@e, "operator call on integer list elements (Same thing, dot form)"); | |
}; | |
#?rakudo skip 'hyper dot postfix form does not work currently' | |
{ | |
(@r = (1, 4, 9)).».++; | |
is(~@r, ~@e, "operator call on integer list elements (Same thing, dot form)"); | |
}; | |
#?rakudo skip 'hyper dot postfix form does not work currently' | |
{ | |
(@r = (1, 4, 9))\ .»\ .++; | |
@e = (2, 5, 10); | |
is(~@r, ~@e, "operator call on integer list elements (Same thing, upspace form)"); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment