diff options
Diffstat (limited to 'users/sterni/exercises/aoc/2021')
-rwxr-xr-x | users/sterni/exercises/aoc/2021/solutions.bqn | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/users/sterni/exercises/aoc/2021/solutions.bqn b/users/sterni/exercises/aoc/2021/solutions.bqn index 4cedb567f9aa..f7247cadf280 100755 --- a/users/sterni/exercises/aoc/2021/solutions.bqn +++ b/users/sterni/exercises/aoc/2021/solutions.bqn @@ -4,17 +4,10 @@ # Utilities # -IsAsciiNum ← ('0'⊸≤∧≤⟜'9') - -ReadInt ← {(𝕨⊸×+⊣)´∘⌽-⟜'0'𝕩} # stolen from leah2 -ReadDec ← 10⊸ReadInt +⟨IsAsciiNum,ReadInt,ReadDec,SplitOn,_fix⟩ ← •Import •path∾"/../lib.bqn" ReadInput ← {•file.Lines ∾ •path‿"/input/day"‿(•Fmt 𝕩)} -SplitOn ← ((⊢ (-1˙)⍟⊣¨ +`∘(1⊸»<⊢))∘(≡¨)⊔⊢) - -_fix ← {𝕩 𝕊∘⊢⍟≢ 𝔽 𝕩} - # # 2021-12-01 # |