Skip to content

Instantly share code, notes, and snippets.

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