Skip to content

Commit 09b84e6

Browse files
committed
Add example for "R meta operator used with list-associative operators"
1 parent 5b14a35 commit 09b84e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/Language/operators.pod6

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ X<|R,reverse metaoperator>
273273
Any infix operator may be called with its two arguments reversed by
274274
prefixing with C<R>. Associativity of operands is reversed as well.
275275
276-
say 4 R/ 12; # OUTPUT: «3␤»
277-
say [R/] 2, 4, 16; # OUTPUT: «2␤»
276+
say 4 R/ 12; # OUTPUT: «3␤»
277+
say [R/] 2, 4, 16; # OUTPUT: «2␤»
278+
say [RZ~] <1 2 3>,<4 5 6> # OUTPUT: «(41 52 63)␤»
278279
279280
X<|»=«>
280281
X<|«=»>

0 commit comments

Comments
 (0)