mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-09-30 05:23:17 -09:00
day 24 part 1
This commit is contained in:
parent
95245a474a
commit
adfa38f737
@ -142,6 +142,12 @@
|
||||
|
||||
;; conversions
|
||||
|
||||
(defn binary->long [binary-str]
|
||||
(Long/parseLong binary-str 2))
|
||||
|
||||
(defn long->binary [value]
|
||||
(Long/toString value 2))
|
||||
|
||||
(def arrow-char->dir {\> :right
|
||||
\v :down
|
||||
\< :left
|
||||
|
Loading…
x
Reference in New Issue
Block a user