Finds the index of the last element satisfying some predicate before or at some end index and within the range specified by count.
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,
int end,
int count
)
public int LastIndexWhere(
Func<T, bool> predicate,
int end,
int count
)
Public Function LastIndexWhere (
predicate As Func(Of T, Boolean),
end As Integer,
count As Integer
) As Integer
Public Function LastIndexWhere (
predicate As Func(Of T, Boolean),
end As Integer,
count As Integer
) As Integer
public:
virtual int LastIndexWhere(
Func<T, bool>^ predicate,
int end,
int count
) sealed
public:
virtual int LastIndexWhere(
Func<T, bool>^ predicate,
int end,
int count
) sealed
abstract LastIndexWhere :
predicate : Func<'T, bool> *
end : int *
count : int -> int
override LastIndexWhere :
predicate : Func<'T, bool> *
end : int *
count : int -> int
abstract LastIndexWhere :
predicate : Func<'T, bool> *
end : int *
count : int -> int
override LastIndexWhere :
predicate : Func<'T, bool> *
end : int *
count : int -> int
Parameters
- predicate
- Type: System Func T, Boolean
The predicate used to test elements.
- end
- Type: System Int32
The end index.
- count
- Type: System Int32
The number of elements in the section to search.
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 , Int32, Int32)See Also