Author: lwall Date: 2009-06-12 18:47:24 +0200 (Fri, 12 Jun 2009) New Revision: 27064
Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod Log: [Containers] more clarifications Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-06-12 16:34:34 UTC (rev 27063) +++ docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-06-12 16:47:24 UTC (rev 27064) @@ -478,7 +478,7 @@ our Array multi method push ( @array: *...@values ) is export Add to the end of C<@array>, all of the subsequent arguments and -returns the array. +returns the modified array. =item rotate @@ -493,6 +493,13 @@ @array.unshift(@array.pop); +If the magnitude of C<$n> is larger than the number of elements, +the rotational semantics must be equivalent to doing: + + @array.rotate(sign($n)) for ^abs($n) + +The modified array is returned. + =item shift our Scalar multi method shift ( @array: ) is export @@ -539,7 +546,7 @@ our Array multi method unshift ( @array: *...@values ) is export C<unshift> adds the values onto the start of the C<@array> and -returns the array. +returns the modified array. =item keys