mori icon indicating copy to clipboard operation
mori copied to clipboard

reduce_kv and subvecs

Open tgriesser opened this issue 11 years ago • 1 comments
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 avatar Jul 21 '14 00:07 tgriesser

@tgriesser ah interesting, probably need to extend Subvec to IKVReduce in ClojureScript. Will look into it.

swannodette avatar Jul 21 '14 11:07 swannodette