set

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

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