add comments

This commit is contained in:
Adam Jeniski 2023-12-09 08:51:06 -05:00
parent 66478a04c0
commit d5d2c3bd2e

View File

@ -14,6 +14,7 @@
lcm (fn lcm [a b] (/ (* a b) (gcd a b)))] lcm (fn lcm [a b] (/ (* a b) (gcd a b)))]
(reduce lcm x))) (reduce lcm x)))
;; part 1
(let [[dir _ & lines] (get-puzzle-input 8) (let [[dir _ & lines] (get-puzzle-input 8)
dir-idx (map #(condp = % dir-idx (map #(condp = %
\L 0 \L 0
@ -29,6 +30,7 @@
drest drest
(inc n))))) (inc n)))))
;; part 2
(let [[dir _ & lines] (get-puzzle-input 8) (let [[dir _ & lines] (get-puzzle-input 8)
dir-idx (map #(condp = % dir-idx (map #(condp = %
\L 0 \L 0