From 65760d712ea463159df5e1cba19c41f0d49f4ccc Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Thu, 1 Dec 2022 21:09:48 +0100 Subject: [PATCH] take the filename as an argument pls --- aoc.bqn | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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