take the filename as an argument pls
This commit is contained in:
parent
cfe9746da2
commit
65760d712e
1 changed files with 4 additions and 5 deletions
9
aoc.bqn
9
aoc.bqn
|
@ -1,7 +1,6 @@
|
||||||
|
Day1 ⇐ {
|
||||||
day1 ⇐ {
|
nums ← •BQN⎊0¨ •FLines 𝕩
|
||||||
nums ← •BQN⎊0¨ •FLines "input/day1"
|
|
||||||
sums ← ∨ (+´ {𝕩↑𝕨↓nums}´)¨ (»⋈¨ ⊢-») / 0⊸≡¨ nums
|
sums ← ∨ (+´ {𝕩↑𝕨↓nums}´)¨ (»⋈¨ ⊢-») / 0⊸≡¨ nums
|
||||||
|
⟨⊑sums, +´ 3↑sums⟩
|
||||||
a ⇐ ⊑sums ⋄ b ⇐ +´ 3↑sums
|
|
||||||
}
|
}
|
||||||
|
•Show Day1 ⊑•args
|
||||||
|
|
Loading…
Reference in a new issue