mirror of
https://github.com/fiddlerwoaroof/data-lens.git
synced 2025-11-08 10:16:32 +00:00
feat(utils): add generic FUNCTIONALIZE to turn values into functions
This commit is contained in:
@ -11,7 +11,9 @@
|
||||
(:method ((seq sequence) (func symbol) init)
|
||||
(reduce func seq :initial-value init))
|
||||
(:method (seq (func symbol) init)
|
||||
(reduce-generic seq (symbol-function func) init))
|
||||
(reduce-generic seq
|
||||
(symbol-function func)
|
||||
init))
|
||||
(:method ((seq hash-table) (func function) init)
|
||||
(let ((acc init))
|
||||
(maphash (lambda (k v)
|
||||
|
||||
Reference in New Issue
Block a user