@mikuroxina/mini-fn
    Preparing search index...

    Function withStateT

    • Modifies the state of the computation s with fn.

      Type Parameters

      • S
      • M
      • A

      Parameters

      • fn: (state: S) => S

        The state modifier.

      Returns (s: StateT<S, M, A>) => StateT<S, M, A>

      The modified computation.