mirror of
https://github.com/fiddlerwoaroof/data-lens.git
synced 2025-11-08 18:26:32 +00:00
feat: allow transducer parts to be past as a list
This commit is contained in:
@ -131,7 +131,10 @@
|
||||
((it) (funcall rf it))))))
|
||||
|
||||
(defun transduce (xf build seq)
|
||||
(let ((transducer (funcall xf (stepper build))))
|
||||
(let* ((xf (etypecase xf
|
||||
(list (apply 'alexandria:compose xf))
|
||||
((or function symbol) xf)))
|
||||
(transducer (funcall xf (stepper build))))
|
||||
(unwrap build
|
||||
(funcall transducer
|
||||
(catch 'done
|
||||
|
||||
Reference in New Issue
Block a user