Instance Method インスタンスメソッド

index(of:)

Returns the first index where the specified value appears in the collection. 指定された値がコレクションにおいて現れるところの最初のインデックスを返します。

Declaration 宣言

func index(of element: Base.Element) -> Index?
Available when Base.Element conforms to Equatable. Base.ElementEquatableに準拠する時に利用可能です。