
I have a small snippet of code that I use in some places in my program. It applies a function for secondary effects to either a single element or a collection. Given a function f, I initially wrote this:
(if (coll? el)
(doseq [e el]
(f e))
(f e))
and later replaced it with this:
(d...