function | since v0.0-927 | clojure.core/associative? | Edit |
(associative? x)
Determines if the given collection implements IAssociative
(e.g. maps and vectors).
(associative? [1 2 3])
;;=> true
(associative? {:a 1 :b 2})
;;=> true
(associative? #{1 2 3})
;;=> false
(associative? '(1 2 3))
;;=> false
Returns true if coll implements IAssociative
(defn associative?
[x] (satisfies? IAssociative x))