user=> (counted? [:a :b :c])
true
user=> (counted? '(:a :b :c))
true
user=> (counted? {:a 1 :b 2 :c 3})
true
user=> (counted? #{:a :b :c})
true
user=> (counted? "asdf")
false
user=> (counted? (into-array Integer/TYPE [1 2 3]))
false
(defn counted?
"Returns true if coll implements count in constant time"
{:added "1.0"
:static true}
[coll] (instance? clojure.lang.Counted coll))
Comments top
No comments for counted?. Log in to add a comment.