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

0 votes
in data.int-map by

Empty intersection of int-sets return () from clojure.lang.Seqable.seq().

user> (dorun (map #(println "set contains:" %) (intersection (int-set [1]) (int-set [2])))) set contains: nil nil

2 Answers

0 votes
by

Comment made by: steveminer@gmail.com

Not sure I understand this bug, but it's likely something has been fixed since the original report. (seq (im/int-set)) returns nil as expected. Also, clojure.set/intersection on int-sets worked as expected for me.

0 votes
by
Reference: https://clojure.atlassian.net/browse/DIMAP-2 (reported by alex+import)
...