day6: learned read-string

master
Clyne 3 years ago
parent 4db3315d89
commit 0e3b0f4732

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

Loading…
Cancel
Save