empty?

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

Details:

Returns true if coll has no items - same as (not (seq coll)).

Please use the idiom (seq x) rather than (not (empty? x)).


See Also:


Source docstring:
Returns true if coll has no items. To check the emptiness of a seq,
please use the idiom (seq x) rather than (not (empty? x))
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn empty?
  [coll]
  (cond
    (nil? coll)
    true

    (satisfies? ICounted coll)
    (zero? (-count coll))

    :else
    (not (seq coll))))