Good morning all.
mogge
Morning
You know the (not (empty? coll)) is deemed to be non-idomatic, I've been using (some? (seq coll)) instead...returns true or false if the sequence contains anything (or not as the case may be). Any other ways of doing this whilst using seq?
(shocker, a clojure question!)
Why not just (seq coll) and rely on truthy/falsey?
(some of it used in other systems, like a json response, i.e., hasMembers: true)
it was just clojure to clojure, then yes, truthy would be fine 🙂
(boolean (seq coll)) is what I would use in that case, boolean is a general "truthy/falsey -> Boolean" coercion...