• Applies fn to the contained success value, or returns the default value init if it is an Err.

    Type Parameters

    • U

    Parameters

    • init: U

      The default value.

    Returns (<T>(fn) => (<E>(res) => U))

    The mapped value.

      • <T>(fn): (<E>(res) => U)
      • Type Parameters

        • T

        Parameters

        • fn: ((t) => U)
            • (t): U
            • Parameters

              • t: T

              Returns U

        Returns (<E>(res) => U)

          • <E>(res): U
          • Type Parameters

            • E

            Parameters

            Returns U

Generated using TypeDoc