aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-078/conor-hoekstra/ch-2.apl14
1 files changed, 14 insertions, 0 deletions
diff --git a/challenge-078/conor-hoekstra/ch-2.apl b/challenge-078/conor-hoekstra/ch-2.apl
new file mode 100644
index 0000000000..5a696c2bef
--- /dev/null
+++ b/challenge-078/conor-hoekstra/ch-2.apl
@@ -0,0 +1,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]