Welcome! Please see the About page for a little more info on how this works.

0 votes
in data.int-map by

=> ((transient (clojure.data.int-map/dense-int-set 1)) 1)
IllegalArgumentException Don't know how to create ISeq from: java.lang.Long clojure.lang.RT.seqFrom (RT.java:545)

=> ((transient #{1}) 1)
1

4 Answers

0 votes
by

Comment made by: ztellman

This should be easy enough to fix, thanks.

0 votes
by

Comment made by: markengelberg

In theory, contains? is also supposed to work for transient sets: http://dev.clojure.org/jira/browse/CLJ-700
So while you are adding interfaces to data.int-map transient sets, you may want to add that one as well so that the behavior will match once CLJ-700 is added.

0 votes
by

Comment made by: steveminer@gmail.com

The original example looks like a typo. The argument to dense-int-set should be a collection, not a long so that explains the exception. Maybe the doc string could be more explicit.

((transient (clojure.data.int-map/dense-int-set (link: 1))) 1) works for me.

0 votes
by
Reference: https://clojure.atlassian.net/browse/DIMAP-9 (reported by markengelberg)
...