I guess I should've look harder (and ask more in the irc ;) it is a data structure and has a set fn too. #{} is just a reader macro for syntactic sugar. And the difference of usage between sets and vectors are they sets can't have duplicates. This is great, clojure group with irc chat, good learning.
On Oct 31, 9:35 pm, tonyl <celtich...@gmail.com> wrote: > I've been wondering if sets are actually a defined data structure like > vectors and maps or are they a result of an expansion of the dispatch > macro? I was wondering since it uses the dispatch macro and AFAIK > there is no api fn to create them like hash-maps to create maps, > vector/vec for vectors, or list for lists. > > Another thing I am trying to figure out is, are they really needed? > vectors seem to fill in anytime sets could be used, unless I am > missing something here. > > Any information would be appreciated. -- 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