Scoop API

scoop:scoop.std:0.1.0

SortedSet

interface SortedSet

source · line 48
public
public interface SortedSet<T> : Set<T>

A set ordered by its comparator, with nearest-element queries returning None when no bound exists.

Extensions

property comparator

source · line 52
public
public val comparator: Comparator<T>

get: public read-only

The comparator used for ordering and, for ordered maps/sets, equivalence.

function firstOrNone

source · line 56
public
public fun firstOrNone(): T?

Returns the least element, or None when empty.

function ceiling

source · line 72
public
public fun ceiling(element: T): T?

Returns the least element at or above the argument, or None.

function lastOrNone

source · line 60
public
public fun lastOrNone(): T?

Returns the greatest element, or None when empty.

function higher

source · line 76
public
public fun higher(element: T): T?

Returns the least element strictly above the argument, or None.

function floor

source · line 68
public
public fun floor(element: T): T?

Returns the greatest element at or below the argument, or None.

function lower

source · line 64
public
public fun lower(element: T): T?

Returns the greatest element strictly below the argument, or None.