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

index(before:)

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

Declaration 宣言

func index(before i: ReversedCollection<Base>.Index) -> ReversedCollection<Base>.Index

Parameters パラメータ

i

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

Return Value 戻り値

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

Discussion 解説

Relationships 関係

From Protocol 由来プロトコル