aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-17 20:07:34 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-17 20:07:34 +0100
commitdb2ef41d1980d6402d40b13c29880467223290dc (patch)
tree0a692489a9432d605ac38935bc10c03a8894233c
parentceaaad427c52c33d7d0b208ac22f97d1ab24a4d5 (diff)
downloadadvent-of-code-db2ef41d1980d6402d40b13c29880467223290dc.tar.gz
advent-of-code-db2ef41d1980d6402d40b13c29880467223290dc.tar.bz2
advent-of-code-db2ef41d1980d6402d40b13c29880467223290dc.zip
Started puzzle-8
-rw-r--r--2022/puzzle-8.lisp7
1 files changed, 7 insertions, 0 deletions
diff --git a/2022/puzzle-8.lisp b/2022/puzzle-8.lisp
new file mode 100644
index 0000000..426ae13
--- /dev/null
+++ b/2022/puzzle-8.lisp
@@ -0,0 +1,7 @@
+(load "lib")
+(defparameter input (uiop:read-file-string "8-input"))
+(defparameter lines (get-lines input))
+;; Just converts every line into a sequence of integral digits
+(defparameter trees
+ (mapcar (lambda (line) (mapcar (lambda (char) (parse-integer (string char))) (string-to-clist line)))
+ lines))