Contents

index(before:)

Returns the position immediately before the given index.

Declaration

borrowing func index(before i: InlineArray<count, Element>.Index) -> InlineArray<count, Element>.Index

Parameters

  • i:

    A valid index of the array. i must be greater than startIndex.

Return Value

The index value immediately before i.

Discussion