From b8afed6dd4ccd6d32bc806882ec458ea553f6b89 Mon Sep 17 00:00:00 2001 From: sterni Date: Sat, 10 Dec 2022 21:35:26 +0100 Subject: [PATCH] =?UTF-8?q?refactor(sterni/aoc/2022/05):=20rank=202=20arra?= =?UTF-8?q?y=20into=20list=20of=20lists=20w/=20<=CB=98?= 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(-) diff --git a/users/sterni/exercises/aoc/2022/05/5.bqn b/users/sterni/exercises/aoc/2022/05/5.bqn index b3d190b9f..15b0dfc80 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