Finds index of last element satisfying some predicate before or at given end index.
Namespace: FlinqAssembly: Flinq (in Flinq.dll) Version: 1.0.2.0 (1.0.2.0)
Syntax
C# |
---|
public static int LastIndexWhere<A>( this IEnumerable<A> source, Func<A, bool> p, int end ) |
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.
- end
- Type: System..::..Int32
The end index.
Type Parameters
- A
- The type of the elements in the input sequence.
Return Value
Type: Int32The index <= end of the last element of this list that satisfies the predicate p, or -1, if none exists.