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

index(before:)

Returns the position immediately before the given index. 与えられたインデックスの直前の位置を返します。

Declaration 宣言

func index(before i: Int) -> Int

Parameters パラメータ

i

A valid index of the collection. i must be greater than startIndex. そのコレクションの有効なインデックス。istartIndexより大きくなければなりません。

Return Value 戻り値

The index immediately before i. iの直前のインデックス。

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Manipulating Indices インデックスを操る