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

index(after:)

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

Declaration 宣言

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

Parameters パラメータ

i

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

Return Value 戻り値

The index value immediately after i. iの直後のインデックス。

Discussion 解説

The successor of an index must be well defined. For an index i into a collection c, calling c.index(after: i) returns the same index every time. あるインデックスの後に続くものは、よく定義されなければなりません。コレクションcへのインデックスiに対して、c.index(after: i)を呼び出すことはいつでも同じインデックスを返します。

Relationships 関係

From Protocol 由来プロトコル