diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-12-12 19:38:53 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-12-12 19:38:53 +0100 |
commit | 13440b6d1d67118b56afa6e2036bba45ace43878 (patch) | |
tree | 598771dadc5136c2964a81e24bf87b0d509de4ad /2024/12 | |
parent | 9e156294949420b56788bc03fdbe72d67cc8ec94 (diff) |
Fix formatting
Diffstat (limited to '2024/12')
-rw-r--r-- | 2024/12/puzzles.lisp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/2024/12/puzzles.lisp b/2024/12/puzzles.lisp index 3a02033..a07575e 100644 --- a/2024/12/puzzles.lisp +++ b/2024/12/puzzles.lisp @@ -3,8 +3,8 @@ (defparameter *seen* (make-hash-table :test #'equal)) -(defun read-grid (filename) - (with-open-file (stream filename) +(defconstant +farm+ + (with-open-file (stream "input") (let ((lines (loop for line = (read-line stream nil) while line collect (coerce line 'array)))) @@ -12,9 +12,6 @@ (length (first lines))) :initial-contents lines)))) -(defconstant +farm+ - (read-grid "input")) - (defun main () (loop with dimensions = (array-dimensions +farm+) for i from 0 below (first dimensions) |