From aca0e6cc3613ecf67bd709490986bf1fce6b0645 Mon Sep 17 00:00:00 2001 From: Conor Hoekstra Date: Sat, 21 Sep 2024 00:20:19 -0400 Subject: :sparkles: Week 78-1 in APL --- challenge-078/conor-hoekstra/ch-2.apl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 challenge-078/conor-hoekstra/ch-2.apl 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] -- cgit