7 Commits

Author SHA1 Message Date
Aryadev Chavali
65b65a2a3e Introduce tests for split-by-first and split-by-completely
Allows one to split by string delimiter, or anything else.
2024-10-30 22:33:31 +00:00
Aryadev Chavali
07a5f754da Update lib.lisp to be more imperative and include a threading macro
Instead of (f (g (h (j (k x))))) we can write
(-> (k x)
    (j it)
    (h it)
    (g it)
    (f it))

which is works really well for particularly large and complicated
expressions.
2024-10-30 22:33:27 +00:00
Aryadev Chavali
cd94c350e6 Use every instead of all 2024-10-29 20:00:39 +00:00
Aryadev Chavali
67fdc3157f Finished round 2 of puzzle-8 2023-10-17 21:53:46 +01:00
Aryadev Chavali
f32f774eae Added all and remove-nth
Does what they say, all is the logical inverse to some.
2023-10-17 20:41:54 +01:00
Aryadev Chavali
ceaaad427c split-by->split-by-first, split-completely->split-by-completely 2023-10-17 20:07:19 +01:00
Aryadev Chavali
d3ed2f503e Version control lib.lisp 2023-10-17 14:14:38 +01:00