There are some macros, read-macros and functions written by myself, I use in many programs I write.
I think, every lisper has some files containing utilities.
I am interested, which utilities are the most useful you wrote.
Let me write some examples, I wrote:
A reader macro. I use it, instead of comment, if I want to remove excactly one element or one operation etc.
f is the recursive function.
The first argument of f is the function to call for recursion
I would also like if you have suggestions to improve the code.
I think, every lisper has some files containing utilities.
I am interested, which utilities are the most useful you wrote.
Let me write some examples, I wrote:
A reader macro. I use it, instead of comment, if I want to remove excactly one element or one operation etc.
(set-dispatch-macro-character #\# #\; (lambda (stream char number)
(declare (ignore char number))
(read stream t)
(values)))
Functions, which create a recursive Function without giving them a name.f is the recursive function.
The first argument of f is the function to call for recursion
(defun recurse (f &rest rest)
(apply f (recursive f) rest))
(defun recursive (f)
(lambda (&rest rest) (apply #'recurse f rest)))
If you are interested, I could also post more.I would also like if you have suggestions to improve the code.