Test day12pt1
[adventofcode2019.git] / src / adventofcode2019 / day12.clj
index 28ad0b2783d56ae33132fd918c0077ff65c86f13..7326e425a72c8d73c9759ee06ef7c8ef480e0d8e 100644 (file)
@@ -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)))