refactor(sterni/aoc/2022/05): rank 2 array into list of lists w/ <˘
Change-Id: Ic536908bad5bb4af860ec53bd585ed74af3117af Reviewed-on: https://cl.tvl.fyi/c/depot/+/7557 Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
c381fa64cf
commit
b8afed6dd4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue