update ordered dictionaries
if the dictionary is empty the functions min, max, floor and celling return None.
This commit is contained in:
parent
6aa7075de9
commit
f610e5e557
@ -37,8 +37,8 @@ interface Dictionary<K, V> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface OrderedDictionary<K : Comparable<K>, V> : Dictionary<K, V> {
|
interface OrderedDictionary<K : Comparable<K>, V> : Dictionary<K, V> {
|
||||||
fun max(): K
|
fun max(): Option<K>
|
||||||
fun min(): K
|
fun min(): Option<K>
|
||||||
fun floor(key: K): K
|
fun floor(key: K): Option<K>
|
||||||
fun ceiling(key: K): K
|
fun ceiling(key: K): Option<K>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user