Hello!

In attempting to add a feature for a project with both Clojure and 
ClojureScript support, I found that ClojureScript does not currently appear to 
support the user of reducers (IReduce protocol) for PersistentQueue and 
PersistentHashSet collections. Is my understanding correct? If so, I couldn't 
find any JIRA tickets to add that functionality yet - would adding them be 
consistent with the community's goals for ClojureScript?

    -Stephen

PS Small test snippet:
(require '[clojure.core.reducers :as r])
(r/fold + [1 2 3 4]) ;; Works!
(r/fold + #queue [1 2 3 4]) ;; Error: No protocol method IReduce.-reduce 
defined for type cljs.core/PersistentQueue
(r/fold + #{1 2 3 4}) ;; Error: No protocol method IReduce.-reduce defined for 
type cljs.core/PersistentHashSet

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to