arrow-fx / arrow.fx / Ref / getAndUpdate

getAndUpdate

abstract fun getAndUpdate(f: (A) -> A): Kind<F, A>

Modifies the current value using the supplied update function and returns the old value.

See Also

update

Do you like Arrow?

Arrow Org
<