Created
January 29, 2017 14:58
-
-
Save deque-blog/6b23b36986bb21733cd5b27a018711a9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
expression partial_eval(env const& env, expression const& e) | |
{ | |
return cata<expression>( | |
[&env](expression_r<expression> const& e) -> expression { | |
return optimize_alg(partial_eval_alg(env)(e).get()); | |
}, | |
e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment