Header menu logo B2R2

SortedList Module

Provides extended functionality for the generic SortedList collection.

Functions and values

Function or value Description

SortedList.tryFindNextKey key list

Full Usage: SortedList.tryFindNextKey key list

Parameters:
Returns: 'T option
Type parameters: 'T, 'a

Finds the next key of the given key according to the comparer of the given SortedList. If there is no strictly greater key, this function returns None.

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

SortedList.tryFindPreviousKey key list

Full Usage: SortedList.tryFindPreviousKey key list

Parameters:
Returns: 'T option
Type parameters: 'T, 'a

Finds the previous key of the given key according to the comparer of the given SortedList. If there is no strictly smaller key, this function returns None.

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

Type something to start searching.