Last active
January 29, 2017 14:56
-
-
Save deque-blog/84313c71028c68327a613f4a7a2dfe32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int eval_2(env const& env, expression const& e) | |
{ | |
auto reduced = partial_eval(env, e); | |
if (auto* i = get_as_cst(reduced.get()))return *i; | |
throw_missing_variables(dependencies(reduced)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment