• Modifies a value of the reference in a scope of Mut environment.

    Type Parameters

    • S

    • A

    Parameters

    • ref: MutRef<S, A>

      A target to modify.

    Returns ((modifier) => Mut<S, never[]>)

    The modifying operation.

      • (modifier): Mut<S, never[]>
      • Parameters

        • modifier: ((oldValue) => A)
            • (oldValue): A
            • Parameters

              • oldValue: A

              Returns A

        Returns Mut<S, never[]>

Generated using TypeDoc