Created
April 21, 2017 14:07
-
-
Save kjnilsson/ec4ca45532c8aa711a57234520e455bd to your computer and use it in GitHub Desktop.
core erlang apply curiosity
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
'add'/2 = | |
fun (_a0,_b0) -> | |
call 'erlang':'+'(_a0,_b0) | |
'addFive'/0 = | |
fun () -> | |
let <_a0> = 5 | |
in fun (_b0) -> | |
apply 'add'/2 (_a0,_b0) | |
'addSix'/1 = | |
fun (_x0) -> | |
call 'erlang':'+'(let <_fez0> = apply 'addFive'/0 () | |
in apply _fez0 (_x0),1) | |
'addSix2'/1 = | |
fun (_x0) -> | |
call 'erlang':'+'(apply apply 'addFive'/0 () (_x0),1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment