And to answer your original question, ISeq extends IPersistentCollection, so all seq? should be coll?.
I *think* all concrete ISeqs are Sequential in practice, and all Sequentials are IPersistentCollections, but I'm not 100%. Phil On 26 November 2012 14:01, Mark Engelberg <[email protected]> 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 [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
