diff options
author | Colin Okay <colin@cicadas.surf> | 2022-10-27 09:55:44 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-10-27 09:55:44 -0500 |
commit | f3698889e04d90b346e79338ec6afa56ccf385dd (patch) | |
tree | e5fcab40a0f1a4f07564cf8acd986f28a8947e49 /utilities.lisp | |
parent | f4dbd7e0a7067e96b2db143171b06d0a127643cc (diff) |
Rename: alambda to thunk*
Diffstat (limited to 'utilities.lisp')
-rw-r--r-- | utilities.lisp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/utilities.lisp b/utilities.lisp index ec1ae55..ce14b7e 100644 --- a/utilities.lisp +++ b/utilities.lisp @@ -84,11 +84,13 @@ (nth m list) tmp) list)) -(defmacro alambda (&body body) - "Anaphoric lambda of one argument" - `(lambda (it) - (declare (ignorable it)) - ,@body)) +(defmacro thunk* (&body body) + "Returns a lambda of any number of arguments where those arguments + are ignored." + (let ((args (gensym)) ) + `(lambda (&rest ,args) + (declare (ignorable ,args)) + ,@body))) (defun tmp-dir-name () (merge-pathnames |