From 78f1d367fbd1d54f3c1e37da0016be80aaf36ff3 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Sat, 9 May 2020 14:15:08 +0200 Subject: [PATCH] Solve problem 10 --- phase1.dyalog | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phase1.dyalog b/phase1.dyalog index 15c94ba..a81ef5b 100644 --- a/phase1.dyalog +++ b/phase1.dyalog @@ -17,4 +17,6 @@ zigzag←∧/2=∘|2-/∘×2-/(10∘⊥⍣¯1) ⍝ 9: Rise and Fall risefall←{∧/(⍳∘≢≡⍋)¨(⊂((⊢⍳⌈/)↑⊢),⍵),⊂⌽((⊢⍳⌈/)↓⊢),⍵} + ⍝ 10: Stacking It Up + stacking←{↑⊃,/↓¨⍕¨⍵} :EndNamespace