core-ktx / androidx.util / android.util.LongSparseArray / remove

remove

fun <T> LongSparseArray<T>.remove(key: Long, value: T): Boolean

Removes the entry for key only if it is mapped to value.