aboutsummaryrefslogtreecommitdiffstats
path: root/src/aoc_2022/utils.clj
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2022-12-04 18:33:40 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2022-12-04 18:38:58 +0200
commit686339d1fae622df20fa73b72b632ca3cb7fd7be (patch)
treef81f500f80bb0ac453a01aa10616959a75b2c67c /src/aoc_2022/utils.clj
parent1adba42708436a86db1f369028fb6fae4bc4eda8 (diff)
Add .clj-kondo/config.edn, fix warnings
Diffstat (limited to 'src/aoc_2022/utils.clj')
-rw-r--r--src/aoc_2022/utils.clj13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/aoc_2022/utils.clj b/src/aoc_2022/utils.clj
index 4ade901..c59d498 100644
--- a/src/aoc_2022/utils.clj
+++ b/src/aoc_2022/utils.clj
@@ -33,15 +33,16 @@
`task1` and `task2` should take a list of strings as their first argument."
[day task1 task2]
(let [{:keys [sample actual]} (read-aoc day)]
- (do
- (println "task1 @ sample:" (task1 sample))
- (println "task1 @ actual:" (task1 actual))
- (println "task2 @ sample:" (task2 sample))
- (println "task2 @ actual:" (task2 actual)))))
+ (println "task1 @ sample:" (task1 sample))
+ (println "task1 @ actual:" (task1 actual))
+ (println "task2 @ sample:" (task2 sample))
+ (println "task2 @ actual:" (task2 actual))))
; Functions
-(defn chain "forward compose: comp fns in reverse order" [& fns]
+(defn chain
+ "forward compose: comp fns in reverse order"
+ [& fns]
(apply comp (reverse fns)))
; Logic