Get lambda reader macro working and fix day 03 bug
[adventofcode2020.git] / src / utilities.lisp
index ab6c3e8faa36eb6d59ac780c1ae7d8f6670a142b..91e74d11b1aeb5a8a6316c11562e7934f9eb0aa1 100644 (file)
@@ -6,7 +6,7 @@
   (split "\\n" str))
 
 (defun int-list-from (str)
-  (mapcar #'parse-integer (split "\\n" str)))
+  (mapcar #'parse-integer (list-from str)))
 
 (defun cartesian-product (A B &rest C)
   (let ((helper (lambda (X Y)