tvl-depot/users/sterni/exercises/aoc/lib.bqn

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
372 B
BQN
Raw Normal View History

IsAsciiNum ('0''9')
# based on leah2's function
ReadInt {
𝕨 𝕊 𝕩: '-'=𝕩? -𝕨 𝕊 1𝕩;
𝕨 𝕊 𝕩: (𝕨×+)´-'0'𝕩
}
ReadDec 10ReadInt
SplitOn (( (-1˙)¨ +`(1»<))(¨))
SplitAt (())
_fix {𝕩 𝕊 𝔽 𝕩}