You're viewing version 1.2.0 of sequential?. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

sequential?

clojure.core

  • (sequential? coll)
Returns true if coll implements Sequential

1 Example top

  • user=> (sequential? '(1 2 3))
    true
    
    user=> (sequential? [1 2 3])
    true
    
    user => (sequential? (range 1 5))
    true
    
    user=> (sequential? 1)
    false
    
    user => (sequential? {:a 2 :b 1})
    false
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:5000 top

(defn sequential?
 "Returns true if coll implements Sequential"
 {:added "1.0"}
  [coll] (instance? clojure.lang.Sequential coll))
Vars in clojure.core/sequential?: defn instance?

Comments top

No comments for sequential?. Log in to add a comment.