user=> (not-empty []) nil user=> (not-empty [1]) [1] user=> (not-empty [1 3 5]) [1 3 5]
Returns an empty collection of the same category as coll, or nil
(defn not-empty "If coll is empty, returns nil, else coll" {:added "1.0" :static true} [coll] (when (seq coll) coll))
Comments top
No comments for not-empty. Log in to add a comment.