]> localhost Git - adventofcode2019.git/commitdiff
Test day12pt1
authorJack Kinsey <j.jameskinsey@gmail.com>
Fri, 13 Dec 2019 00:14:57 +0000 (19:14 -0500)
committerJack Kinsey <j.jameskinsey@gmail.com>
Fri, 20 Dec 2019 04:00:19 +0000 (23:00 -0500)
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)))