arrow-fx / arrow.fx / Ref / updateAndGet
abstract fun updateAndGet(f: (A) -> A): Kind<F, A>
Modifies the current value using the supplied update function and returns the new value.
See Also
update
Do you like Arrow?