about summary refs log tree commit diff
path: root/users/sterni/exercises/aoc/2021/solutions.bqn
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2021-12-26T19·48+0100
committerclbot <clbot@tvl.fyi>2021-12-26T19·51+0000
commit675f97e5357ebad9a231834319dd6f098a1c1ddd (patch)
tree4b92c1a4e33f2454de03f9bffb1fca20ec84e6db /users/sterni/exercises/aoc/2021/solutions.bqn
parent5600321d03d72578cb49857a1f26edddd2f84efa (diff)
feat(sterni/aoc/2021): don't split on consecutive occurrences of 𝕨 r/3444
Change-Id: I2ab17e0238df297f580c45bc28914c6dfd0ce848
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4680
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/sterni/exercises/aoc/2021/solutions.bqn')
-rwxr-xr-xusers/sterni/exercises/aoc/2021/solutions.bqn2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/sterni/exercises/aoc/2021/solutions.bqn b/users/sterni/exercises/aoc/2021/solutions.bqn
index e5a89182d8f4..5a957fc132d6 100755
--- a/users/sterni/exercises/aoc/2021/solutions.bqn
+++ b/users/sterni/exercises/aoc/2021/solutions.bqn
@@ -11,7 +11,7 @@ ReadDec ← 10⊸ReadInt
 
 ReadInput ← {•file.Lines ∾ •path‿"/input/day"‿(•Fmt 𝕩)}
 
-SplitOn ← ((⊢ (-1˙)⍟⊣¨ +`)∘=⊔⊢)
+SplitOn ← ((⊢ (-1˙)⍟⊣¨ +`∘(1⊸»<⊢))∘(≡¨)⊔⊢)
 
 _fix ← {𝕩 𝕊∘⊢⍟≢ 𝔽 𝕩}