On 23 March 2012 14:47, Leandro Oliveira <lolive...@gmail.com> wrote:
> Thank you for all replies.
>
> Can I say that if you need remove an item you should use a map?

It depends entirely on how you intend to look up your values. If your
lookup is by the entire value, then sets make sense. If it's by only
part of a value, then maps make sense.

eg

(disj #{[1 2 3] [4 5 6] [7 8 9]} [1 2 3])
;=> #{[4 5 6] [7 8 9]}

(dissoc {1 [1 2 3] 4 [4 5 6] 7 [7 8 9]} 1)
;=> {4 [4 5 6] 7 [7 8 9]}

Phil

-- 
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

Reply via email to