user=> (associative? [1 2 3]) ; vector
true
user=> (associative? '(1 2 3)) ; list
false
user=> (associative? {:a 1 :b 2}) ; map
true
user=> (associative? #{:a :b :c}) ; set
false
user=> (associative? "fred") ; string
false
(defn associative?
"Returns true if coll implements Associative"
{:added "1.0"}
[coll] (instance? clojure.lang.Associative coll))
Comments top
No comments for associative?. Log in to add a comment.