From 8a5bba8f295f3f09fc07a8759c3fc4c84e5bda17 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 3 Dec 2024 00:52:48 -0500 Subject: [PATCH] refactor --- 2024/src/day01.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2024/src/day01.clj b/2024/src/day01.clj index ec2d445..8d1066b 100644 --- a/2024/src/day01.clj +++ b/2024/src/day01.clj @@ -4,7 +4,7 @@ [core :as c])) (def input (->> (get-input 1) - (map #(c/get-match-groups #"(\d+)\s+(\d+)" %)) + (map #(first (c/get-match-groups #"(\d+)\s+(\d+)" %))) (map #(mapv parse-long %)) (into {}) ((juxt keys vals))))