From c6517a9c3b6f3a67771c6e8aae5934b05c619dd3 Mon Sep 17 00:00:00 2001 From: Adam Jeniski Date: Wed, 6 Dec 2023 08:00:10 -0500 Subject: [PATCH] golf --- 2023/src/day06.clj | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/2023/src/day06.clj b/2023/src/day06.clj index f57f8c3..ae20411 100644 --- a/2023/src/day06.clj +++ b/2023/src/day06.clj @@ -15,11 +15,9 @@ (reduce *))) ;; part 1 -(->> (map (partial re-seq #"\d+") input) - solve) +(solve (map (partial re-seq #"\d+") input)) ;; part 2 -(->> (map (partial re-seq #"[\s\d]+") input) - (map (partial map #(string/replace % " " ""))) - solve) +(solve (->> (map (partial re-seq #"[\s\d]+") input) + (map (partial map #(string/replace % " " "")))))