indexInsert

fun indexInsert(index: Int, key: Long)

Inserts a key for an index that is not present in the set. This method may help in avoiding double recalculation of the key's hash.

Parameters

index

The index of a previously non-existing key, as returned from .indexOf.

See also

.indexOf

Throws

If assertions are enabled and the index does not correspond to an existing key.