aboutsummaryrefslogtreecommitdiff
path: root/main.lisp
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2025-02-10 06:31:43 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2025-02-11 00:40:19 +0000
commitef572b992b57011efd6dbfe649b0ba68f5f5f320 (patch)
tree587be7464a63920723a88220bd2b1809a5eb0d3e /main.lisp
parent5a48b66dd649a4dafce56749487f8060637e452c (diff)
downloadcantedraw-ef572b992b57011efd6dbfe649b0ba68f5f5f320.tar.gz
cantedraw-ef572b992b57011efd6dbfe649b0ba68f5f5f320.tar.bz2
cantedraw-ef572b992b57011efd6dbfe649b0ba68f5f5f320.zip
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.
Diffstat (limited to 'main.lisp')
-rw-r--r--main.lisp2
1 files changed, 1 insertions, 1 deletions
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)