Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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