Finds index of the first element satisfying some predicate after or at some start index.
Namespace: FlinqAssembly: Flinq (in Flinq.dll) Version: 1.0.2.0 (1.0.2.0)
Syntax
C# |
---|
public static int IndexWhere<A>( this IEnumerable<A> source, Func<A, bool> p, int from ) |
Parameters
- source
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'A>)>)>
The input sequence.
- p
- Type: System..::..Func<(Of <(<'A, Boolean>)>)>
The predicate used to test elements.
- from
- Type: System..::..Int32
The start index.
Type Parameters
- A
- The type of the elements in the input sequence.
Return Value
Type: Int32The index >= from of the first element of this list that satisfies the predicate p, or -1, if none exists.