Returns the int id of the given element (0-based) or -1 if not found in the index.
Returns the int id of the given element (0-based) or -1 if not found in the index. This method never changes the index (even in MutableIndex).
Returns true if this index contains the element t.
Returns true if this index contains the element t.
Returns an object at the given position or throws IndexOutOfBoundsException if it's not found.
Returns an object at the given position or throws IndexOutOfBoundsException if it's not found.
Returns an integer index for the given object, adding it to the index if it is not already present.
Returns an integer index for the given object, adding it to the index if it is not already present.
Override Iterable's linear-scan indexOf to use our apply method.
Override Iterable's linear-scan indexOf to use our apply method.
Returns Some(i) if the object has been indexed, or None.
Returns Some(i) if the object has been indexed, or None.
Returns the indexed items along with their indicies
Returns the indexed items along with their indicies
Number of elements in this index.
Number of elements in this index.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Returns Some(t) if this int corresponds to some object, and None otherwise.
Returns Some(t) if this int corresponds to some object, and None otherwise.
A proxy for MutableIndex instances.