mirror of
https://github.com/fiddlerwoaroof/data-lens.git
synced 2025-11-08 10:16:32 +00:00
feat: generalize transform-elt to sequences
This commit is contained in:
@ -225,9 +225,10 @@
|
||||
|
||||
(defun transform-elt (elt fun)
|
||||
(lambda (it)
|
||||
(append (subseq it 0 elt)
|
||||
(list (funcall fun (nth elt it)))
|
||||
(subseq it (1+ elt)))))
|
||||
(concatenate (type-of it)
|
||||
(subseq it 0 elt)
|
||||
(list (funcall fun (elt it elt)))
|
||||
(subseq it (1+ elt)))))
|
||||
|
||||
(defun key-transform (fun key-get key-set)
|
||||
(lambda (it)
|
||||
|
||||
Reference in New Issue
Block a user