Skip to content

Instantly share code, notes, and snippets.

@patham9
Created May 15, 2016 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patham9/27adf9b587e0f2e75cfec909c71f9c1d to your computer and use it in GitHub Desktop.
Save patham9/27adf9b587e0f2e75cfec909c71f9c1d to your computer and use it in GitHub Desktop.
(defmethod precondition-transformation :substitute-from-list
[[_ el1 el2] conclusion]
`(mapv (fn [k#]
(if (= k# ~el1)
k#
(walk k# (= :el ~el1) ~el2)))
~conclusion))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment