Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created January 22, 2017 18:35
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 deque-blog/81c394c55db05cc47e9676febe3befec to your computer and use it in GitHub Desktop.
Save deque-blog/81c394c55db05cc47e9676febe3befec to your computer and use it in GitHub Desktop.
(print-expr expr)
=> "(+ 1 2 (* 0 x y) (* 1 y 2) (+ 0 x))"
(print-expr (partial-eval {"y" 0} expr))
=> "(+ 3 x)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment