ImmutableList<T>.Builder.FindLastIndex メソッド
定義
オーバーロード
FindLastIndex(Predicate<T>) |
変更できないリスト全体から、指定した述語によって定義される条件に一致する要素を検索し、最もインデックス番号の大きい要素の 0 から始まるインデックスを返します。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire immutable list. |
FindLastIndex(Int32, Predicate<T>) |
変更できないリストのうち、先頭の要素から指定したインデックスまでの範囲の中で、指定した述語によって定義される条件に一致する要素を検索し、そのうち最もインデックス番号の大きい要素の 0 から始まるインデックスを返します。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index. |
FindLastIndex(Int32, Int32, Predicate<T>) |
変更できないリストのうち、指定したインデックスで終わり、指定した要素数が含まれる範囲の中で、指定した述語によって定義される条件に一致する要素を検索し、そのうち最もインデックス番号の大きい要素の 0 から始まるインデックスを返します。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that contains the specified number of elements and ends at the specified index. |
FindLastIndex(Predicate<T>)
変更できないリスト全体から、指定した述語によって定義される条件に一致する要素を検索し、最もインデックス番号の大きい要素の 0 から始まるインデックスを返します。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire immutable list.
public:
virtual int FindLastIndex(Predicate<T> ^ match);
public:
int FindLastIndex(Predicate<T> ^ match);
public int FindLastIndex (Predicate<T> match);
abstract member FindLastIndex : Predicate<'T> -> int
override this.FindLastIndex : Predicate<'T> -> int
member this.FindLastIndex : Predicate<'T> -> int
Public Function FindLastIndex (match As Predicate(Of T)) As Integer
パラメーター
- match
- Predicate<T>
検索する要素の条件を定義するデリゲート。The delegate that defines the conditions of the element to search for.
戻り値
match
で定義された条件と一致する要素が存在する場合、最もインデックス番号の大きい要素の 0 から始まるインデックス。それ以外の場合は -1。The zero-based index of the last occurrence of an element that matches the conditions defined by match
, if found; otherwise, -1.
適用対象
FindLastIndex(Int32, Predicate<T>)
変更できないリストのうち、先頭の要素から指定したインデックスまでの範囲の中で、指定した述語によって定義される条件に一致する要素を検索し、そのうち最もインデックス番号の大きい要素の 0 から始まるインデックスを返します。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
public:
virtual int FindLastIndex(int startIndex, Predicate<T> ^ match);
public:
int FindLastIndex(int startIndex, Predicate<T> ^ match);
public int FindLastIndex (int startIndex, Predicate<T> match);
abstract member FindLastIndex : int * Predicate<'T> -> int
override this.FindLastIndex : int * Predicate<'T> -> int
member this.FindLastIndex : int * Predicate<'T> -> int
Public Function FindLastIndex (startIndex As Integer, match As Predicate(Of T)) As Integer
パラメーター
- startIndex
- Int32
後方検索の開始位置を示す 0 から始まるインデックス。The zero-based starting index of the backward search.
- match
- Predicate<T>
検索する要素の条件を定義するデリゲート。The delegate that defines the conditions of the element to search for.
戻り値
match
で定義された条件と一致する要素が存在する場合、最もインデックス番号の大きい要素の 0 から始まるインデックス。それ以外の場合は -1。The zero-based index of the last occurrence of an element that matches the conditions defined by match
, if found; otherwise, -1.
適用対象
FindLastIndex(Int32, Int32, Predicate<T>)
変更できないリストのうち、指定したインデックスで終わり、指定した要素数が含まれる範囲の中で、指定した述語によって定義される条件に一致する要素を検索し、そのうち最もインデックス番号の大きい要素の 0 から始まるインデックスを返します。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that contains the specified number of elements and ends at the specified index.
public:
virtual int FindLastIndex(int startIndex, int count, Predicate<T> ^ match);
public:
int FindLastIndex(int startIndex, int count, Predicate<T> ^ match);
public int FindLastIndex (int startIndex, int count, Predicate<T> match);
abstract member FindLastIndex : int * int * Predicate<'T> -> int
override this.FindLastIndex : int * int * Predicate<'T> -> int
member this.FindLastIndex : int * int * Predicate<'T> -> int
Public Function FindLastIndex (startIndex As Integer, count As Integer, match As Predicate(Of T)) As Integer
パラメーター
- startIndex
- Int32
後方検索の開始位置を示す 0 から始まるインデックス。The zero-based starting index of the backward search.
- count
- Int32
検索対象の範囲内にある要素の数。The number of elements in the section to search.
- match
- Predicate<T>
検索する要素の条件を定義するデリゲート。The delegate that defines the conditions of the element to search for.
戻り値
match
で定義された条件と一致する要素が存在する場合、最もインデックス番号の大きい要素の 0 から始まるインデックス。それ以外の場合は -1。The zero-based index of the last occurrence of an element that matches the conditions defined by match
, if found; otherwise, -1.