Yeah, areduce is probably the better optimization. I actually like the boost to pouring larger arrays into sets that it should bring.
This made me notice some related issues; I'll file separate tickets for those.
David Nolen
September 4, 2013 at 6:45 AM
Ooops haha Applied fix before seeing yours. I think the original code was a bit to simplistic and not worth attempting to correct as you'd just end up duplicating code written elsewhere (didn't really handle complex keys or anything like that).
(set [1 2 2]) => #{1 2 2}