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:5491 top

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

Comments top

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