Skip to content

Instantly share code, notes, and snippets.

@kt3k
Created April 14, 2013 11:18
Show Gist options
  • Save kt3k/5382341 to your computer and use it in GitHub Desktop.
Save kt3k/5382341 to your computer and use it in GitHub Desktop.
Implementation of combinators in CoffeeScript is very natural!
S = (X) -> (Y) -> (x) -> X(x)(Y(x))
K = (X) -> (x) -> X
I = (x) -> x
Y = (f) -> ((x) -> f(x(x)))((x) -> f(x(x)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment