diff options
author | sterni <sternenseemann@systemli.org> | 2021-12-26T19·48+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2021-12-26T19·51+0000 |
commit | 675f97e5357ebad9a231834319dd6f098a1c1ddd (patch) | |
tree | 4b92c1a4e33f2454de03f9bffb1fca20ec84e6db /users/sterni/exercises/aoc/2021/solutions.bqn | |
parent | 5600321d03d72578cb49857a1f26edddd2f84efa (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-x | users/sterni/exercises/aoc/2021/solutions.bqn | 2 |
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 ← {𝕩 𝕊∘⊢⍟≢ 𝔽 𝕩} |