Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created January 17, 2017 17:14
Show Gist options
  • Select an option

  • Save deque-blog/e2ae346f7927d7b941120260932530ee to your computer and use it in GitHub Desktop.

Select an option

Save deque-blog/e2ae346f7927d7b941120260932530ee to your computer and use it in GitHub Desktop.
> 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 [("y", 0)]
> prn (partial env e)
"(+ 1 2 (* 0 x 0) (* 1 0 2) (+ 0 x))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment