Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Function4Static

This is the type of the Function4 constant, which offers some helper functions to deal with Function4 including the ability to build Function4 from functions using Function4Static.of. It also offers some builtin functions like Function4Static.constant.

Hierarchy

  • Function4Static

Index

Methods

Methods

constant

  • constant<T1, T2, T3, T4, R>(val: R): Function4<T1, T2, T3, T4, R>
  • The constant function of four parameters: will always return the value you give, no matter the parameters it's given.

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • R

    Parameters

    • val: R

    Returns Function4<T1, T2, T3, T4, R>

of

  • of<T1, T2, T3, T4, R>(fn: function): Function4<T1, T2, T3, T4, R>
  • Take a four-parameter function and lift it to become a Function4, enabling you to call Function4.andThen and other such methods on it.

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • R

    Parameters

    • fn: function
        • (x: T1, y: T2, z: T3, a: T4): R
        • Parameters

          • x: T1
          • y: T2
          • z: T3
          • a: T4

          Returns R

    Returns Function4<T1, T2, T3, T4, R>

Generated using TypeDoc