vector?

clojure.core

  • (vector? x)
Return true if x implements IPersistentVector

1 Example top

  • user=> (vector? [1 2 3])
    true
    user=> (vector? '(1 2 3))
    false
    user=> (vector? (vec '(1 2 3)))
    true
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:170 top

(def
 ^{:arglists '([x])
   :doc "Return true if x implements IPersistentVector"
   :added "1.0"
   :static true}
 vector? (fn ^:static vector? [x] (instance? clojure.lang.IPersistentVector x)))
Vars in clojure.core/vector?:
Used in 0 other vars

Comments top

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