aboutsummaryrefslogtreecommitdiffhomepage
path: root/utilities.lisp
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-10-27 09:55:44 -0500
committerColin Okay <colin@cicadas.surf>2022-10-27 09:55:44 -0500
commitf3698889e04d90b346e79338ec6afa56ccf385dd (patch)
treee5fcab40a0f1a4f07564cf8acd986f28a8947e49 /utilities.lisp
parentf4dbd7e0a7067e96b2db143171b06d0a127643cc (diff)
Rename: alambda to thunk*
Diffstat (limited to 'utilities.lisp')
-rw-r--r--utilities.lisp12
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