aboutsummaryrefslogtreecommitdiff
path: root/2022/puzzle-8.lisp
blob: 426ae13b30e5ae820c0f52c217fbf71b9653b55a (plain)
1
2
3
4
5
6
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))