Welcome! Please see the About page for a little more info on how this works.
I wonder why there is no function similar to not-empty but for any value with any predicate, like:
(defn when-pred [v pred] (when (pred v) v))
I found this pattern very common and miss it in the core.
Are there reasons for not having it in the core?
Would cond-> fit the bill? Or maybe when-let ?
I've added a jira for this (added to description) and some comments on there.