Cross-posted from Zolo Labs.
I kept using an extra line of code for this, so I decided to create the following function:
|(defn domap [function coll]|
|(->> coll (map function) doall))|
Another extra line of code can similarly be removed using this function:
|(defn doeach [function coll]|
|(doseq [c coll]|
I keep both these (and a few more) in a handy utils.clojure namespace I created for just such functions.