mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-09-30 11:23:17 -09:00
shorten imports
This commit is contained in:
parent
cf53738987
commit
05e888539b
@ -1,10 +1,9 @@
|
|||||||
(ns ^{:doc "Day 4"
|
(ns ^{:doc "Day 4"
|
||||||
:author "Adam Jeniski"}
|
:author "Adam Jeniski"}
|
||||||
day04 (:require
|
day04 (:require [clojure.math :as math]
|
||||||
[clojure.math :as math]
|
[clojure.set :refer [intersection]]
|
||||||
[clojure.set :refer [intersection]]
|
[clojure.string :as string]
|
||||||
[clojure.string :as string]
|
[core :refer [get-puzzle-input]]))
|
||||||
[core :refer [get-puzzle-input]]))
|
|
||||||
|
|
||||||
(def data (->> (get-puzzle-input 4)
|
(def data (->> (get-puzzle-input 4)
|
||||||
(map #(rest (re-find #"^Card\s*\d+: ([\s\d]+) \| ([\s\d]+)" %)))
|
(map #(rest (re-find #"^Card\s*\d+: ([\s\d]+) \| ([\s\d]+)" %)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user