Skip to content

Instantly share code, notes, and snippets.

Rafik NACCACHE turbopape

Block or report user

Report or block turbopape

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@turbopape
turbopape / gist:4f587a6d1134bf43386047231caa0378
Created Oct 12, 2016
an implemetation of replace with ...
View gist:4f587a6d1134bf43386047231caa0378
(defn replace-with
[repl-map ;{pattern1 fn1 pattern2 fn2 ...}
form]
(clojure.walk/postwalk
(fn [node]
(if-let [node-fn (get repl-map node)]
(node-fn node)
node))
form))
You can’t perform that action at this time.