Instance Method

index(of:)

Returns the first index where the specified value appears in the collection.

Declaration

func index(of element: Bound) -> Bound?
Available when Element conforms to Equatable.

See Also

Infrequently Used Functionality

init(uncheckedBounds: (lower: Bound, upper: Bound))

Creates an instance with the given bounds.

func withContiguousStorageIfAvailable<R>((UnsafeBufferPointer<Bound>) -> R) -> R?

Call body(p), where p is a pointer to the collection’s contiguous storage. If no such storage exists, it is first created. If the collection does not support an internal representation in a form of contiguous storage, body is not called and nil is returned.