tvl-depot/users/sterni/exercises/aoc/2022/04/4.bqn

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

12 lines
323 B
BQN
Raw Normal View History

SplitOn, ReadDec •Import "../../lib.bqn"
Sections {
ab ReadDec¨ (<'-') SplitOn 𝕩
(-a) 1+b
}
i 2Sections¨ (<',') SplitOn¨ •FLines "input"
Is ´((¨))
•Out "day04.1: "•Fmt +´(´Is)˘ i
•Out "day04.2: "•Fmt +´(´Is)˘ i