computeAndRemove

inline fun <K, V> computeAndRemove(map: MutableMap<K, V>, key: K, crossinline onRemove: suspend V.() -> Unit): Boolean