refactor
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
[core :as c]))
|
[core :as c]))
|
||||||
|
|
||||||
(def input (->> (get-input 1)
|
(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 %))
|
(map #(mapv parse-long %))
|
||||||
(into {})
|
(into {})
|
||||||
((juxt keys vals))))
|
((juxt keys vals))))
|
||||||
|
|||||||
Reference in New Issue
Block a user