core-ktx / androidx.util / android.util.SparseArray / set

set

inline operator fun <T> SparseArray<T>.set(key: Int, value: T): Unit

Allows the use of the index operator for storing values in the collection.