From bd267418797f5b7fbc5242dfe0154d24b3dfb8d0 Mon Sep 17 00:00:00 2001 From: Adam Jeniski Date: Thu, 5 Dec 2024 10:47:56 -0500 Subject: [PATCH] golf --- 2024/src/day05.clj | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/2024/src/day05.clj b/2024/src/day05.clj index d011f90..156b790 100644 --- a/2024/src/day05.clj +++ b/2024/src/day05.clj @@ -22,8 +22,7 @@ (if (some acc (orderings el)) (reduced false) (conj acc el))) - #{} - coll)) + #{} coll)) (defn order [coll] (reduce (fn [acc p] @@ -34,8 +33,7 @@ not-empty)] (c/insert-vec acc (apply min idxs) p) (conj acc p))) - [] - coll)) + [] coll)) ;; part 1 (->> pages