On Feb 14, 2009, at 6:38 PM, Frantisek Sodomka wrote:

Function 'set' looses some of its data. It seems that there is a
problem with comparison between lists and vectors:

"set" is a hash set. It will never contain two items with equal hashes.

        user=> (hash [1 2])
        994
        user=> (hash '(1 2))
        994
        user=> (hash [])
        1
        user=> (hash ())
        1

What data types is sorted-set supposed to work on? When used with
different data types, it errors out:
http://clojure.org/data_structures

sorted-set elements must be comparable.

There's more info here:

        
http://groups.google.com/group/clojure/browse_frm/thread/710848919c68981f/51ede18b2fd7ab96?lnk=gst&q=sorted-set#51ede18b2fd7ab96

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to