mirror of
https://github.com/fiddlerwoaroof/data-lens.git
synced 2026-06-17 15:34:54 +00:00
feat: add of-type to generate semipredicates
This commit is contained in:
@@ -193,6 +193,11 @@
|
|||||||
(alexandria:ends-with-subseq suffix
|
(alexandria:ends-with-subseq suffix
|
||||||
it))))
|
it))))
|
||||||
|
|
||||||
|
(defun of-type (type)
|
||||||
|
(lambda (it)
|
||||||
|
(when (typep it type)
|
||||||
|
it)))
|
||||||
|
|
||||||
(defun transform-head (fun)
|
(defun transform-head (fun)
|
||||||
(lambda (it)
|
(lambda (it)
|
||||||
(typecase it
|
(typecase it
|
||||||
|
|||||||
Reference in New Issue
Block a user