mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-09-30 09:23:17 -09:00
golf
This commit is contained in:
parent
8ee2a7d72c
commit
c6517a9c3b
@ -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 % " " "")))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user