Author: lwall
Date: 2010-03-20 00:23:22 +0100 (Sat, 20 Mar 2010)
New Revision: 30130

Modified:
   docs/Perl6/Spec/S03-operators.pod
Log:
[S03] document that R does not change associativity


Modified: docs/Perl6/Spec/S03-operators.pod
===================================================================
--- docs/Perl6/Spec/S03-operators.pod   2010-03-19 22:38:51 UTC (rev 30129)
+++ docs/Perl6/Spec/S03-operators.pod   2010-03-19 23:23:22 UTC (rev 30130)
@@ -3986,7 +3986,14 @@
     R<=>
 
 The precedence of any reversed operator is the same as the base operator.
+The associative is I<not> reversed, so
 
+    [R-] 1,2,3   # produces 2 from 3 - (2 - 1)
+
+To get the other effect in a reduce, reverse the list:
+
+    [-] reverse 1,2,3  # produces 0
+
 =head2 Hyper operators
 
 The Unicode characters C<»> (C<\x[BB]>) and C<«> (C<\x[AB]>) and

Reply via email to