feat: add transform

This commit is contained in:
Edward Langley
2023-07-15 10:22:38 -07:00
parent 902adc1fe0
commit 2705341bb0
3 changed files with 17 additions and 3 deletions

View File

@ -332,6 +332,13 @@
(apply #'concatenate result-type
seq)))
(defun transform (arg &rest args)
(if args
(lambda (fn)
(apply fn arg args))
(lambda (fn)
(funcall fn arg))))
(defmacro calling (fun &rest args)
(alexandria:with-gensyms (first-arg)
`(lambda (,first-arg)