From b8afed6dd4ccd6d32bc806882ec458ea553f6b89 Mon Sep 17 00:00:00 2001 From: sterni Date: Sat, 10 Dec 2022 21:35:26 +0100 Subject: refactor(sterni/aoc/2022/05): rank 2 array into list of lists w/ <˘ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic536908bad5bb4af860ec53bd585ed74af3117af Reviewed-on: https://cl.tvl.fyi/c/depot/+/7557 Tested-by: BuildkiteCI Autosubmit: sterni Reviewed-by: sterni --- users/sterni/exercises/aoc/2022/05/5.bqn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/sterni/exercises/aoc') diff --git a/users/sterni/exercises/aoc/2022/05/5.bqn b/users/sterni/exercises/aoc/2022/05/5.bqn index b3d190b9fc77..15b0dfc805b5 100644 --- a/users/sterni/exercises/aoc/2022/05/5.bqn +++ b/users/sterni/exercises/aoc/2022/05/5.bqn @@ -3,7 +3,7 @@ rs‿rc ← (<"") SplitOn •FLines "../05/input" stacks ← { count ← '0'-˜⊑⌽' ' (≠/⊢) ⊑⌽rs - ' ' (≠/⊢)¨⥊⋈˘ (count×4) ((»∘(0⊸=)∘(4⊸|)∘↕⊣)/↑) ⍉> (-1)↓rs + ' ' (≠/⊢)¨<˘ (count×4) ((»∘(0⊸=)∘(4⊸|)∘↕⊣)/↑) ⍉> (-1)↓rs } cmds ← {0‿1‿1-˜ ReadDec¨ ((∧´IsAsciiNum)¨/⊢) (<' ') SplitOn 𝕩}¨ rc -- cgit 1.4.1