Calc.LowerBound<T> Method

Returns the lower bound of lst seaching for a. lst must be sorted.
Public Shared Function LowerBound(Of  _ 
T As IComparable)( _ 
ByVal lst As List(Of T), _ 
ByVal a As T _ 
) As Integer
This language is not supported or no code example is available.
public static int LowerBound<T>( 
List<T> lst
T a 

where T : IComparable
This language is not supported or no code example is available.
generic<typename T> 
where T : IComparable
public:  
static int LowerBound( 
List<T^>^ lst
T^ a 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Type Parameters

T

Parameters

lst
List<T>

a
T

Return Value

int

The index to the first element larger or equal to a. If a is larger than all elements then -1 is returned.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition