Shift list elements to left by 3: Difference between revisions
Content added Content deleted
m (→{{header|AppleScript}}: Two in-place alternatives) |
|||
Line 204: | Line 204: | ||
---- |
---- |
||
===Two in- |
===Two in-place alternatives=== |
||
Fewest moves: |
Fewest moves: |
||
<lang applescript>(* List rotation, in-place with temporary external storage. Negative 'amount' = left rotation, positive = right. |
<lang applescript>(* List rotation, in-place with temporary external storage. Negative 'amount' = left rotation, positive = right. |