Created
January 17, 2017 17:37
-
-
Save deque-blog/b7d284210663fd2a2e9230736baea385 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
> let e = add [ cst(1) | |
, cst(2) | |
, mul [cst(0), var("x"), var("y")] | |
, mul [cst(1), var("y"), cst(2)] | |
, add [cst(0), var("x") ]] | |
> let env = Map.fromList [("x", 1)] | |
> eval' env e | |
*** Exception: Missing vars: fromList ["y"] | |
> eval' Map.empty e | |
*** Exception: Missing vars: fromList ["x","y"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment