On Wed, Dec 1, 2010 at 12:35 AM, Sunil S Nandihalli
<[email protected]> wrote:
> Hello everybody,
>  I would like to know as to what I can assume about order of the elements
> when I do a seq on hash-map or a set?

Absolutely nothing. If you want arbitrary but controlled ordering, use
a vector or a seq. If you want to sort on a specific criterion that
can be computed from each element, use sorted-map, sorted-set,
sorted-map-by, sorted-set-by, or a seq view produced with sort or
sort-by.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to