Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Function5Static

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

Hierarchy

  • Function5Static

Index

Methods

Methods

constant

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

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • T5

    • R

    Parameters

    • val: R

    Returns Function5<T1, T2, T3, T4, T5, R>

of

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

    Type parameters

    • T1

    • T2

    • T3

    • T4

    • T5

    • R

    Parameters

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

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

          Returns R

    Returns Function5<T1, T2, T3, T4, T5, R>

Generated using TypeDoc