4 ms·
(not-empty coll) is the same as (when (seq coll) coll)
by diego 12y ago
(not-empty coll)
is the same as
(when (seq coll) coll)
- thom 12y agoYeah, it's worth noting that not-empty is the flip-side to empty (which returns an empty coll of the same type as its argument), as opposed to empty?.