ajmorgan
6/12/2014 - 10:17 PM

deep map

deep map

(defn dm [f x]
  (if (coll? x) 
    (map #(dm f %) x)
    (f x)))