Skip to content

Instantly share code, notes, and snippets.

@kjnilsson
Created April 21, 2017 14:07
Show Gist options
  • Save kjnilsson/ec4ca45532c8aa711a57234520e455bd to your computer and use it in GitHub Desktop.
Save kjnilsson/ec4ca45532c8aa711a57234520e455bd to your computer and use it in GitHub Desktop.
core erlang apply curiosity
'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