mirror of
https://github.com/fiddlerwoaroof/data-lens.git
synced 2025-11-08 18:26:32 +00:00
Add function for following a function call with a side-effect
This commit is contained in:
@ -178,6 +178,11 @@
|
|||||||
(apply f args))
|
(apply f args))
|
||||||
r)))))
|
r)))))
|
||||||
|
|
||||||
|
(defun =>> (fun1 fun2)
|
||||||
|
(lambda (i)
|
||||||
|
(prog1 (funcall fun1 i)
|
||||||
|
(funcall fun2))))
|
||||||
|
|
||||||
(defun-ct derive (diff-fun &key (key #'identity))
|
(defun-ct derive (diff-fun &key (key #'identity))
|
||||||
(lambda (list)
|
(lambda (list)
|
||||||
(cons (cons nil (car list))
|
(cons (cons nil (car list))
|
||||||
|
|||||||
Reference in New Issue
Block a user