B2R2


SortedList Module

Functions and values

Function or value Description

SortedList.findGreatestLowerBoundKey key list

Full Usage: SortedList.findGreatestLowerBoundKey key list

Parameters:
Returns: 'T option

Find the greatest key that is less than or equal to the given key from the SortedList. If there's no such key, this function returns None.

key : 'T
list : SortedList<'T, 'a>
Returns: 'T option

SortedList.findLeastUpperBoundKey key list

Full Usage: SortedList.findLeastUpperBoundKey key list

Parameters:
Returns: 'T option

Find the least key that is greater than or equal to the given key from the SortedList. If there's no such key, this function returns None.

key : 'T
list : SortedList<'T, 'a>
Returns: 'T option