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

remove

fun SparseLongArray.remove(key: Int, value: Long): Boolean

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