- :string
- :block
- or :nothing
rotate
right-rotate collection by given distance
Parameters
rotate collection :string :literal :pathliteral :block distance :integer
Attributes
left | left rotation |
Returns
Examples
copyrotate [a b c d e] 1 ; => [e a b c d] rotate.left [a b c d e] 1 ; => [b c d e a] rotate 1..6 4 ; => [3 4 5 6 1 2]