• Maps both the return value and final state of the computation by fn.

    Type Parameters

    • S

    • A

    • B

    Parameters

    • fn: ((a) => [B, S])

      The mapper between the result of computation.

        • (a): [B, S]
        • Parameters

          • a: [A, S]

          Returns [B, S]

    Returns ((s) => State<S, B>)

    The mapped computation.

Generated using TypeDoc