mirror of
https://github.com/fiddlerwoaroof/data-lens.git
synced 2025-11-08 10:16:32 +00:00
feat: calling and calling*
This commit is contained in:
@ -344,6 +344,11 @@
|
||||
`(lambda (,first-arg)
|
||||
(funcall (functionalize ,fun) ,first-arg ,@args))))
|
||||
|
||||
(defmacro calling* (fun &rest args)
|
||||
(alexandria:with-gensyms (last-arg)
|
||||
`(lambda (,last-arg)
|
||||
(funcall (functionalize ,fun) ,@args ,last-arg))))
|
||||
|
||||
(defmacro applying (fun &rest args)
|
||||
(alexandria:with-gensyms (seq fsym)
|
||||
`(let ((,fsym (functionalize ,fun)))
|
||||
|
||||
Reference in New Issue
Block a user