• Modifies the state of the computation s with fn.

    Type Parameters

    • S

    • A

    Parameters

    • fn: ((state) => S)

      The state modifier.

        • (state): S
        • Parameters

          • state: S

          Returns S

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

    The modified computation.

Generated using TypeDoc