arrow-fx / arrow.fx.internal / AtomicRefW / getAndUpdate
fun getAndUpdate(f: (A) -> A): A
Do you like Arrow?