mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-09-30 07:23:18 -09:00
golf
This commit is contained in:
parent
3bbbc8c8ce
commit
943936a4e5
@ -10,8 +10,7 @@
|
||||
(let [last-line (peek pyramid)]
|
||||
(if (every? zero? last-line)
|
||||
pyramid
|
||||
(recur (conj pyramid
|
||||
(mapv - (rest last-line) last-line)))))))
|
||||
(recur (conj pyramid (mapv - (rest last-line) last-line)))))))
|
||||
|
||||
(defn solve [reduction]
|
||||
(->> (get-puzzle-input 9)
|
||||
|
Loading…
x
Reference in New Issue
Block a user