Scoop API

scoop:scoop.std:0.1.0

SortedMap

interface SortedMap

source · line 8
public
public interface SortedMap<K, V> : Map<K, V>

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

Extensions

function firstEntryOrNone

source · line 16
public
public fun firstEntryOrNone(): Map.Entry<K, V>?

Returns the least-key entry, or None when empty.

property comparator

source · line 12
public
public val comparator: Comparator<K>

get: public read-only

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

function lastEntryOrNone

source · line 20
public
public fun lastEntryOrNone(): Map.Entry<K, V>?

Returns the greatest-key entry, or None when empty.