Finds the index of the last element satisfying some predicate.
If this sequence represents an infinite set or series, this will never return!
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public int LastIndexWhere(
Func<T, bool> predicate
)
public int LastIndexWhere(
Func<T, bool> predicate
)
Public Function LastIndexWhere (
predicate As Func(Of T, Boolean)
) As Integer
Public Function LastIndexWhere (
predicate As Func(Of T, Boolean)
) As Integer
public:
virtual int LastIndexWhere(
Func<T, bool>^ predicate
) sealed
public:
virtual int LastIndexWhere(
Func<T, bool>^ predicate
) sealed
abstract LastIndexWhere :
predicate : Func<'T, bool> -> int
override LastIndexWhere :
predicate : Func<'T, bool> -> int
abstract LastIndexWhere :
predicate : Func<'T, bool> -> int
override LastIndexWhere :
predicate : Func<'T, bool> -> int
Parameters
- predicate
- Type: System Func T, Boolean
The predicate used to test elements.
Return Value
Type:
Int32The index of the last element that satisfies the predicate, or -1 if none exists.
Implements
ISequence T LastIndexWhere(Func T, Boolean )See Also