We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20cdc2e commit 0c7fe95Copy full SHA for 0c7fe95
input/2022/input2.nippy
3.88 KB
notebooks/y2022/d02.clj
@@ -2,7 +2,7 @@
2
(ns y2022.d02
3
(:require [clojure.set :as set]
4
[clojure.string :as str]
5
- [nextjournal.clerk :as clerk]))
+ [advent-of-code-clj.input :as input]))
6
7
(def opponent-strategy {\A :rock
8
\B :paper
@@ -62,7 +62,6 @@
62
(transduce (map (comp calculate)) +
63
(str/split-lines data))))
64
65
-^{:nextjournal.clerk/visibility {:code :hide}}
66
-(clerk/code '(= 11767 (part-1 (slurp "input/2022/02.txt"))))
67
68
-(clerk/code '(= 13886 (part-2 (slurp "input/2022/02.txt"))))
+(= 11767 (part-1 (input/get-input 2022 2)))
+
+(= 13886 (part-2 (input/get-input 2022 2)))
0 commit comments