diff options
Diffstat (limited to 'day6/part1.clj')
-rw-r--r-- | day6/part1.clj | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/day6/part1.clj b/day6/part1.clj deleted file mode 100644 index 70293f7..0000000 --- a/day6/part1.clj +++ /dev/null @@ -1,20 +0,0 @@ -(require '[clojure.string :as str]) - -(def fish-init - (->> (read-line) - (#(str/split % #",")) - (map #(Integer/parseInt %)) - (vec) - ) - ) - -(defn cycle-day [fish] - (flatten - (for [f (map dec fish)] - (if (neg? f) [6 8] f) - ) - ) - ) - -(println (count (nth (iterate cycle-day fish-init) 80))) - |