Function: compose¶

core.lambda.compose(f, g)
Returns: A composition of f and g.
(β → γ) → (α → β) → (α → γ)


Composes two functions together.

Examples¶

 1 2 3 4 function inc(a){ return a + 1 } function square(a){ return a * a } compose(inc)(square)(2) // => inc(square(2)) => 5