Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Function0<R>

Function0 encapsulates a parameterless function which returns a value. It adds some useful functions to combine or transform functions.

Type parameters

  • R

Hierarchy

  • Function0

Callable

  • __call(): R

Index

Methods

Methods

andThen

  • Returns a new composed function which first calls the current function and then the one you pass as parameter.

    Type parameters

    • V

    Parameters

    • fn: function
        • (x: R): V
        • Parameters

          • x: R

          Returns V

    Returns Function0<V>

Generated using TypeDoc