Module high-order
Functions
highOrderCompose
- highOrderCompose(...functions: Function[]): any
-
Parameters
-
Rest ...functions: Function[]
Returns any
highOrderPipe
- highOrderPipe(fn: Function, ...restFns: Function[]): any
-
Parameters
-
fn: Function
-
Rest ...restFns: Function[]
Returns any
f . g = f(g(x))
compose((y) => y + 5, (x) => x * 2) // 2 * 2 + 5 => 9