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