code-reviews

ul 2015-07-30T07:00:31.001027Z

Hi, clojurians! I suspect that this tiny wrapper should have even more concise and clojury form:

(defn inject [g]
  (fn [f]
    (fn [e]
      (g e)
      (when f (f e)))))

ul 2015-07-30T07:00:47.001028Z

Any ideas?

2015-07-30T14:09:06.001041Z

@ul: So g is side-affecty, like a logging statement?

2015-07-30T14:11:55.001042Z

I honestly don’t see anything wrong with how it is. I wouldn’t something like that for every application, but I could see it being useful for certain things.