mori
mori copied to clipboard
reduce_kv and subvecs
trafficstars
I'm getting an error when trying to use reduce_kv with a subvec containing nil values
No protocol method IKVReduce.-kv-reduce defined for type object: [1 nil nil nil]
Also worth noting, a regular vector works with this function just fine. I tried playing around with it for a bit but didn't have any luck.
Is there a better way to go about this, or anything you know about why this might not be supported?
Edit: This doesn't appear to have anything with nil values, but rather that reduce_kv doesn't work with subvecs at all - saw some related clojure tickets, not sure what the status is.
@tgriesser ah interesting, probably need to extend Subvec to IKVReduce in ClojureScript. Will look into it.