Skip to content

Instantly share code, notes, and snippets.

@wbbradley
Last active August 21, 2020 04:11
Show Gist options
  • Save wbbradley/ebd1a9fb47d6f29de682eef00fb878d3 to your computer and use it in GitHub Desktop.
Save wbbradley/ebd1a9fb47d6f29de682eef00fb878d3 to your computer and use it in GitHub Desktop.

two_functions.zion

let c = |f, g| => |x| => f(g(x))
fn d(f, g) {
  return fn (x) {
    return f(g(x))
  }
}

Parse the file

$ zion parse two_functions.zion
two_functions.zion:1:5: two_functions::c = (λf,g . return! (λx . return! f(g(x))))
two_functions.zion:2:4: two_functions::d = (λf,g . return! (λx . return! f(g(x))))
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment