Options
All
  • Public
  • Public/Protected
  • All
Menu

Module high-order

Functions

highOrderCompose

  • highOrderCompose(...functions: Function[]): any
  • description

    f . g = f(g(x))

    example

    compose((y) => y + 5, (x) => x * 2) // 2 * 2 + 5 => 9

    Parameters

    • Rest ...functions: Function[]

    Returns any

highOrderPipe

  • highOrderPipe(fn: Function, ...restFns: Function[]): any
  • description

    f . g = g(f(x))

    example

    a

    Parameters

    • fn: Function
    • Rest ...restFns: Function[]

    Returns any

Generated using TypeDoc