diff --git a/aoc.bqn b/aoc.bqn index d9d35aa..e33f8eb 100644 --- a/aoc.bqn +++ b/aoc.bqn @@ -1,7 +1,6 @@ - -day1 ⇐ { - nums ← •BQN⎊0¨ •FLines "input/day1" +Day1 ⇐ { + nums ← •BQN⎊0¨ •FLines 𝕩 sums ← ∨ (+´ {𝕩↑𝕨↓nums}´)¨ (»⋈¨ ⊢-») / 0⊸≡¨ nums - - a ⇐ ⊑sums ⋄ b ⇐ +´ 3↑sums + ⟨⊑sums, +´ 3↑sums⟩ } +•Show Day1 ⊑•args