Last active
August 29, 2015 14:17
-
-
Save joshcough/e2e98d6c76431550f1ed 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
go f pe@(PrimE p) = go (unvar (args !!) f) y where | |
v = Variable | |
args :: [Variable] | |
args = primVars p | |
y :: L5.E (Var Int a) | |
y = Lambda [v "x", v "y"] (abstract (^? _B) (App (PrimE p) [Var (B 0), Var (B 1)])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment