Finds the index of the first element satisfying some predicate after or at some start index and within the range specified by count.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax int IndexWhere(
Func<T, bool> predicate,
int from,
int count
)
int IndexWhere(
Func<T, bool> predicate,
int from,
int count
)
Function IndexWhere (
predicate As Func(Of T, Boolean),
from As Integer,
count As Integer
) As Integer
Function IndexWhere (
predicate As Func(Of T, Boolean),
from As Integer,
count As Integer
) As Integer
int IndexWhere(
Func<T, bool>^ predicate,
int from,
int count
)
int IndexWhere(
Func<T, bool>^ predicate,
int from,
int count
)
abstract IndexWhere :
predicate : Func<'T, bool> *
from : int *
count : int -> int
abstract IndexWhere :
predicate : Func<'T, bool> *
from : int *
count : int -> int
Parameters
- predicate
- Type: System Func T, Boolean
The predicate used to test elements.
- from
- Type: System Int32
The start index.
- count
- Type: System Int32
The number of elements in the section to search.
Return Value
Type:
Int32The index of the first element that satisfies the predicate, or -1 if none exists.
See Also