SortedMap.nearbyKey

Return the value of the key exactly matching the provided key or, if none, the key just after/before it based on the setting of the second argument

param: key a key param: after indicates whether to look beyond or before the given key, where there is no exact match

class SortedMap(K, V, alias Reap = Container.reap, alias Heap = Container.DefaultCollect)
K
nearbyKey
(
K key
,
bool after
)

Return Value

Type: K

a pointer to the value, or null if not present

Throws

NoSuchElementException if none found

Meta