• Maps the value in variant by two mappers.

    Type Parameters

    • E

    • R

    Parameters

    • g: ((e) => R)

      The mapper from error.

        • (e): R
        • Parameters

          • e: E

          Returns R

    Returns (<T>(f) => ((res) => R))

    The mapped value.

      • <T>(f): ((res) => R)
      • Type Parameters

        • T

        Parameters

        • f: ((t) => R)
            • (t): R
            • Parameters

              • t: T

              Returns R

        Returns ((res) => R)

          • (res): R
          • Parameters

            Returns R

Generated using TypeDoc