day6: learned read-string

master
Clyne 3 years ago
parent 4db3315d89
commit 0e3b0f4732

@ -2,7 +2,7 @@
(->> (read-line)
(#(str/split % #","))
(map #(Integer/parseInt %))
(map read-string)
(reduce #(update %1 %2 inc) (vec (repeat 9 0)))
(iterate
#(let [nf (conj (vec (rest %)) (first %))]

Loading…
Cancel
Save