Skip to content

Combinators

Vladimir Gorej edited this page Dec 25, 2019 · 3 revisions

Ramda have the B, C, K and W from the BCKW system

Ramda have S, K and I from the SKI system

// substitution
const S = curry((f, g, x) => f(x, g(x)));

Other known combinators

// Psi
const P = curry((f, g, x, y) => f(g(x), g(y)));

We can imagine a variadic arguments version of this one.


Study material - https://gist.github.com/Avaq/1f0636ec5c8d6aed2e45

Clone this wiki locally