+1 to what Ken said Sunil On Mon, Dec 6, 2010 at 4:04 AM, Ken Wesson <kwess...@gmail.com> wrote:
> On Sun, Dec 5, 2010 at 4:14 PM, jweiss <jeffrey.m.we...@gmail.com> wrote: > > That's totally different than nth for a set being undefined. It's > undefined > > on purpose. > > > > Now, if you are using a sorted-set, then you have a point there, I > > would expect that nth means something then. But yeah, clojure doesn't > > let you call nth on it directly, you have to make a seq out of it > > first. > > I vote to make nth work on sets and maps, in general, sorted and > otherwise, with the well-defined semantics of (identical? (nth > set-or-map) (nth (seq (set-or-map)))). More generally, let nth work on > anything that seq works on, by calling seq on its argument when > necessary. > > -- > 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<clojure%2bunsubscr...@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