From caa9f6415e435acc390a1bba907b115405c10380 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 3 Dec 2024 00:56:46 -0500 Subject: [PATCH] reuse core fns --- 2024/src/day03.clj | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/2024/src/day03.clj b/2024/src/day03.clj index 51a3ff2..a31f27c 100644 --- a/2024/src/day03.clj +++ b/2024/src/day03.clj @@ -9,9 +9,7 @@ "takes in a string containing mul instructions returns list of parsed integral multiplication results" [s] - (->> s - (re-seq #"mul\((\d{1,3}),(\d{1,3})\)") - (map rest) + (->> (c/get-match-groups #"mul\((\d{1,3}),(\d{1,3})\)" s) (map #(map parse-long %)) (map #(reduce * %))))