X-Git-Url: http://git.jkinsey.net/?p=adventofcode2019.git;a=blobdiff_plain;f=src%2Fadventofcode2019%2Fday12.clj;fp=src%2Fadventofcode2019%2Fday12.clj;h=7326e425a72c8d73c9759ee06ef7c8ef480e0d8e;hp=28ad0b2783d56ae33132fd918c0077ff65c86f13;hb=2557180a5d7e409937099b91a1e0524e4238978a;hpb=7a710645a2234dcb568c2e971b5b0367217d0ea8 diff --git a/src/adventofcode2019/day12.clj b/src/adventofcode2019/day12.clj index 28ad0b2..7326e42 100644 --- a/src/adventofcode2019/day12.clj +++ b/src/adventofcode2019/day12.clj @@ -42,7 +42,7 @@ (mapv velocity (reduce apply-gravity bodies all-pairs)))) (defn day12 [] - (let [input (map parse-coords (get-list-from-file (input-file))) + (let [input (mapv parse-coords (get-list-from-file (input-file))) simulate (iterate step-simulation input)] (part1 (reduce + (map total-energy (nth simulate 1000)))) #_(part2)))