Meikel is quite right. I should have said that maps and sets support seq...
I guess the question should then be, should nth call seq on its argument? On 12 June 2012 11:31, Meikel Brandmeyer (kotarak) <m...@kotka.de> wrote: > Hi, > > Am Dienstag, 12. Juni 2012 12:10:08 UTC+2 schrieb Chris Ford: > >> While first and next need to be supported to make maps and sets sequable, >> I don't think that conceptually the elements are ordered. > > > Take care! Neither maps nor sets (nor vectors for that matter) support > first and next! These are sequence functions! They only work on sequences. > The fact that you can pass in maps, sets or vectors is due to the fact that > first and next are nice and call seq on the argument on your behalf so that > you don't have to. But that doesn't mean, that the map itself supports > first or next. > > Neither maps nor sets are sequential data structures. So nth doesn't make > much sense to work with them. I'm not sure about the sorted variants. > > Kind regards > Meikel > > > -- > 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 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