I'm no expert on this, but i'll take a crack at it. I think it's because sets don't (necessarily) impose any order, so there's no concept of "first" or "nth". So destructuring would essentially be assigning a random item to x, or for join, joining them in random order.
I'm curious what the use case is here. Jeff On Dec 5, 12:39 pm, Alex Ott <alex...@gmail.com> wrote: > Hello all > > I have following question to Rich and other core developers of Clojure - > why parameters destructuring requires presence of 'nth' implementation for > destructuring of sequences? > > The [[x & more]] idiom is very popular and could make code more concise, but > it doesn't work for sets and some other collections, like java's HashMap, > etc. If this is performance-related problem - may we could have 2 > different implementations, depending on sequence type? > > I found this when trying to use string/join function for set, and fixed > this inhttp://dev.clojure.org/jira/browse/CLJ-687- so we can use join for > any sequence > > -- > With best wishes, Alex Ott, MBAhttp://alexott.blogspot.com/ > http://alexott.net/http://alexott-ru.blogspot.com/ > Skype: alex.ott -- 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