empty

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

Details:

Returns an empty collection of the same category as coll.

Returns nil if coll is nil.


See Also:


Source docstring:
Returns an empty collection of the same category as coll, or nil
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn empty
  [coll]
  (when-not (nil? coll)
    (cond
      (implements? IEmptyableCollection coll)
      (-empty coll)

      (satisfies? IEmptyableCollection coll)
      (-empty coll)

      :else nil)))