What is the difference between the functions seq?, sequential? and coll?
问题 What is the difference between the functions seq? sequential? and coll? I found some information scattered throughout the internet, but I think it would be better to centralize that information here. 回答1: seq? is a predicate that returns true if it's argument implements ISeq interface, which is to say it provides the methods first , rest , cons . See http://clojure.org/sequences. (seq? [1 2]) false (seq? (seq [1 2])) true sequential? is a predicate that returns true if it's argument