aboutsummaryrefslogtreecommitdiff
path: root/lib.functions.lisp
AgeCommit message (Collapse)Author
2025-02-14Prefix all packages with `cantedraw`Aryadev Chavali
This is mostly a sanity check in-case anyone else decides to load this system for use in their own package - don't want to conflict with their names.
2025-02-14Use := instead of = so we're not re-interning a symbol in cl-loopAryadev Chavali
2025-02-11Move parse-integer*Aryadev Chavali
2025-02-11Rework rev-map to use ->> and to make LIST `cdrs` rather than CONSAryadev Chavali
2025-02-11rev-map functionAryadev Chavali
Given an indicator function (A->B) and a list of items of A, return an association list associating B to the elements that map to it; essentially the inverse map of the indicator.
2025-02-11Implement `split` function.Aryadev Chavali
Given a list and index into that list, return a cons where the car is all elements up to that index (exclusive) and the cdr is the rest of the list.
2025-02-11Implement a "take" function to read subsequences of a listAryadev Chavali
Basically a wrapper over subseq but for when using `->>` as the list is the last parameter.
2025-02-11Introduce lib.functions which includes helper functionsAryadev Chavali
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.