adds map-fast-vec helper
This commit is contained in:
parent
fa2d39ffe5
commit
e9b63b877f
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,12 @@
|
|||
(.addElement fv item))
|
||||
fv))
|
||||
|
||||
(defn map-fast-vec [^weka.core.FastVector fast-vector f]
|
||||
(->> (.elements fast-vector)
|
||||
enumeration-seq
|
||||
(map f)
|
||||
into-fast-vector))
|
||||
|
||||
(defn update-in-when
|
||||
"Similar to update-in, but returns m unmodified if any levels do
|
||||
not exist"
|
||||
|
|
Loading…
Reference in a new issue