indexExists

fun indexExists(index: Int): Boolean

Return

Returns true if the index corresponds to an existing key or false otherwise. This is equivalent to checking whether the index is a positive value (existing keys) or a negative value (non-existing keys).

Parameters

index

The index of a given key, as returned from .indexOf.

See also

.indexOf