about summary refs log tree commit diff
path: root/users/sterni/exercises/aoc/lib.bqn
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-12-07T19Β·13+0100
committerclbot <clbot@tvl.fyi>2022-12-10T15Β·22+0000
commit1649799cb7b9c10d3f98f7fdbb9423c6dd057413 (patch)
treef47ec1048ad3f6c53be0853e4d921afdeaef6e89 /users/sterni/exercises/aoc/lib.bqn
parent2afcbbc451f26e8af83b36ba1c51e68d4763c45f (diff)
feat(sterni/aoc/2022): day08 BQN solution r/5400
Added utility used to be related, but got dropped in a refactor.

Change-Id: I1f88973d6b42f1302b49cd61c53e4cd1e15b8c6f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7553
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/sterni/exercises/aoc/lib.bqn')
-rw-r--r--users/sterni/exercises/aoc/lib.bqn1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/sterni/exercises/aoc/lib.bqn b/users/sterni/exercises/aoc/lib.bqn
index 025102b7760b..636eeace78d2 100644
--- a/users/sterni/exercises/aoc/lib.bqn
+++ b/users/sterni/exercises/aoc/lib.bqn
@@ -4,5 +4,6 @@ ReadInt ⇐ {(π•¨βŠΈΓ—+⊣)´∘⌽-⟜'0'𝕩} # stolen from leah2
 ReadDec ⇐ 10⊸ReadInt
 
 SplitOn ⇐ ((⊒ (-1Λ™)⍟⊣¨ +`∘(1⊸»<⊒))∘(≑¨)βŠ”βŠ’)
+SplitAt ← ((βŠ£β‰€β†•βˆ˜β‰ βˆ˜βŠ’)βŠ”βŠ’)
 
 _fix ⇐ {𝕩 π•Šβˆ˜βŠ’βŸβ‰’ 𝔽 𝕩}