I think seq? and coll? are pretty self-explanatory - they test if it is a valid seq or collection respectively.
Sequential seems to be an equality partition of some sort -- ie two Sequentials with the same contents in the same order should compare equal -- but in my view if you ever have a Sequential which is not a java.util.List you cause yourself pain because List is also an equality partition, and so you can break the transitive equality law. (This affects PersistentQueue, see CLJ-1059 for details). Phil On 26 November 2012 14:01, Mark Engelberg <mark.engelb...@gmail.com> wrote: > I understand that these functions test for different interfaces, but I don't > have a clear sense for which things respond differently to these predicates. > Has anyone compiled a little table of what things satisfy which predicates? > > So far, I've figured out that although lists, strings, vectors, and sets all > can seq: > lists are seq?, sequential? and coll? > vectors are not seq?, are sequential? and coll? > sets are not seq? and not sequential?, but are coll? > strings are not seq?, sequential? or coll? > > From these examples, it appears that: > All seq? are sequential? > All sequential? are coll? > > Is this really true, or have I just not found enough edge cases? > > Thanks. > > -- > 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