aboutsummaryrefslogtreecommitdiff
path: root/challenge-078/conor-hoekstra/apl/ch-2.apl
blob: 5a696c2bef706e2340c8390f1580c5ca7d6fe2da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
LeftRotate  ↑⌽¨∘

⍝ Tests

3 4 LeftRotate 10 20 30 40 50
⍝ Output:
⍝     [40 50 10 20 30]
⍝     [50 10 20 30 40]

1 3 4 LeftRotate 7 4 2 6 3
⍝ Output:
⍝     [4 2 6 3 7]
⍝     [6 3 7 4 2]
⍝     [3 7 4 2 6]