A structure which able to lift up in F.

All instances of the functor f must satisfy the following laws:

  • Identity: f.map((x) => x) equals to (x) => x,
  • Composition: For all a and b; f.map((x) => b(a(x))) equals to (x) => f.map(b)(f.map(a)(x)).

Type Parameters

  • F

Hierarchy

Properties

Properties

map: (<T, U>(fn) => ((t) => Get1<F, U>))

Type declaration

    • <T, U>(fn): ((t) => Get1<F, U>)
    • Maps the function fn onto F structure.

      Type Parameters

      • T

      • U

      Parameters

      • fn: ((t) => U)

        The function to be mapped.

          • (t): U
          • Parameters

            • t: T

            Returns U

      Returns ((t) => Get1<F, U>)

      The mapped function.

Generated using TypeDoc