Created
June 23, 2015 23:16
-
-
Save manpages/76dedcfbed4891842af2 to your computer and use it in GitHub Desktop.
Let elimination example
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-elimination example -} | |
g x = (x, x - 1) | |
h = (42 +) | |
f = \x -> let (_,z) = g x in h z | |
f' = h . fst . g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment