mirror of
https://github.com/fiddlerwoaroof/data-lens.git
synced 2025-11-08 10:16:32 +00:00
feat: allow over to accept multiple functions and compose them
This commit is contained in:
@ -250,6 +250,12 @@
|
||||
(5am:is (equalp #(1 2 3)
|
||||
(funcall (data-lens:over '1+ :result-type 'vector)
|
||||
'(0 1 2))))
|
||||
(5am:is (equalp #(2 3 4)
|
||||
(funcall (data-lens:over '1+ :result-type 'vector '1+)
|
||||
'(0 1 2))))
|
||||
(5am:is (equalp #(2 3 4)
|
||||
(funcall (data-lens:over '1+ '1+ :result-type 'vector)
|
||||
'(0 1 2))))
|
||||
(5am:is (equalp #(1 2 3)
|
||||
(funcall (data-lens:over '1+ :result-type 'vector)
|
||||
#(0 1 2)))))
|
||||
|
||||
Reference in New Issue
Block a user