swannodette / mori

ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript
http://swannodette.github.io/mori
3.39k stars 148 forks source link

mori.difference broken #153

Open stephanos opened 9 years ago

stephanos commented 9 years ago
s0 = mori.set(["cat", "dog", "mouse"])
s1 = mori.set(["dog", "cat", "bird"])
console.log(mori.difference(s0, s1))

prints

#{"mouse"}

but it should print

#{"mouse" "bird"}

(mori version 0.3.2 on Node v0.12.2)

stephanos commented 9 years ago

Only just now saw https://github.com/swannodette/mori/issues/147 - so maybe the docs are wrong, not the code.

kellenlask commented 6 years ago

Can confirm, difference is working correctly in this case.