From cfe9746da2b160c19d7251202ec8937227d88e72 Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Thu, 1 Dec 2022 20:37:22 +0100 Subject: [PATCH] bonus bqn --- aoc.bqn | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 aoc.bqn diff --git a/aoc.bqn b/aoc.bqn new file mode 100644 index 0000000..d9d35aa --- /dev/null +++ b/aoc.bqn @@ -0,0 +1,7 @@ + +day1 ⇐ { + nums ← •BQN⎊0¨ •FLines "input/day1" + sums ← ∨ (+´ {𝕩↑𝕨↓nums}´)¨ (»⋈¨ ⊢-») / 0⊸≡¨ nums + + a ⇐ ⊑sums ⋄ b ⇐ +´ 3↑sums +}