aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Hoekstra <codereport@outlook.com>2024-09-21 00:20:19 -0400
committerConor Hoekstra <codereport@outlook.com>2024-09-21 00:20:19 -0400
commitaca0e6cc3613ecf67bd709490986bf1fce6b0645 (patch)
tree80f7bb4751379debfbbbda06c826ff3b17a3ffef
parent295624cba350a5e0bb34e0e895f7e8930c7e07af (diff)
downloadperlweeklychallenge-club-aca0e6cc3613ecf67bd709490986bf1fce6b0645.tar.gz
perlweeklychallenge-club-aca0e6cc3613ecf67bd709490986bf1fce6b0645.tar.bz2
perlweeklychallenge-club-aca0e6cc3613ecf67bd709490986bf1fce6b0645.zip
:sparkles: Week 78-1 in APL
-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]