feat: add tap

This commit is contained in:
Edward Langley
2023-10-22 11:15:02 -07:00
parent e833e39e87
commit 2207631122
2 changed files with 7 additions and 1 deletions

View File

@ -179,6 +179,11 @@
(lambda (seq)
(map 'list selector seq)))
(defun tap (cb)
(lambda (it)
(prog1 it
(funcall cb it))))
(defun slice (start &optional end)
(lambda (it)
(subseq it start end)))