coll?

functionsince v0.0-927 clojure.core/coll?Edit
(coll? x)

Details:

Returns true if x is a collection, false otherwise.

Lists, maps, sets, and vectors are collections.


Examples:

(coll? [1 2 3])
;;=> true

(coll? '(1 2 3))
;;=> true

(coll? #{1 2 3})
;;=> true

(coll? {:foo 1 :bar 2})
;;=> true

Not collections:

(coll? "foo")
;;=> false

(coll? 123)
;;=> false

(coll? nil)
;;=> false

See Also:


Source docstring:
Returns true if x satisfies ICollection
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn coll?
  [x]
  (if (nil? x)
    false
    (satisfies? ICollection x)))