I believe you may have meant sorted-set
<http://clojuredocs.org/clojure.core/sorted-set>

On Tue, May 31, 2016 at 6:10 AM, vandr0iy <vandr0iy.perso...@gmail.com>
wrote:

> You could use sorted-map, if you wish to have them ordered:
>
> https://clojuredocs.org/clojure.core/sorted-map
>
> there is also sorted-map-by, which lets you define the
> comparator based on which the values have to be sorted
>
> On 05/31/2016 02:54 PM, james.naad...@gmail.com wrote:
>
> I would expect the returned set to be
>
> #{1 2 3} but i get the following. Copied from repl
>
>
> user=> (set [1 1 2 2 3 3])
>
> #{1 3 2}
>
>
> user=> (set '(1 1 2 3 2 4 5 5))
>
> #{1 4 3 2 5}
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to