nee-core / dev.neeffect.nee.atomic / AtomicRef / modify

modify

fun <B> modify(f: (A) -> Pair<A, B>): IO<B>