function | since v0.0-927 | clojure.core/counted? | Edit |
(counted? x)
Returns true if x
executes count
in constant time, false otherwise.
Lists, maps, sets, strings, and vectors can be counted in constant time.
Returns true if coll implements count in constant time
(defn counted?
[x] (satisfies? ICounted x))