From ef572b992b57011efd6dbfe649b0ba68f5f5f320 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 10 Feb 2025 06:31:43 +0000 Subject: Introduce lib.functions which includes helper functions Splitting macros and functions into different packages and source code makes it easier to look at. Functions currently implemented: - range: like Python's range - parse-integer*: parse-integer but junk-allowed is set to t. --- main.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.lisp') diff --git a/main.lisp b/main.lisp index 26ef67a..7d52e22 100644 --- a/main.lisp +++ b/main.lisp @@ -28,7 +28,7 @@ (fn parse-integers (input) (-> (string) list) (->> input (uiop:split-string) - (mapcar (lambda (s) (parse-integer s :junk-allowed t))) + (mapcar #'parse-integer*) (remove-if #'null))) (fn read-integers () (-> nil list) -- cgit v1.2.3-13-gbd6f