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 ⇐ {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue