1 (ns adventofcode2019.day16
2 [:require [adventofcode2019.lib :refer :all]
3 [clojure.string :as str]])
5 (defn parse-input [input]
6 (map (comp parse-int str) input))
11 (mapcat (partial repeat n))
15 (->> (map * input (pattern (inc i)))
21 (map-indexed transform input)))
23 (defn result-of [input]
24 (as-> (parse-input input) it
31 (let [[input] (get-list-from-file (input-file))]
32 (part1 (result-of input))