update ordered dictionaries

if the dictionary is empty the functions min, max, floor and celling
return None.
This commit is contained in:
Raffaele Mignone 2019-04-11 21:57:46 +02:00
parent 6aa7075de9
commit f610e5e557
Signed by: norangebit
GPG Key ID: F5255658CB220573

View File

@ -37,8 +37,8 @@ interface Dictionary<K, V> {
}
interface OrderedDictionary<K : Comparable<K>, V> : Dictionary<K, V> {
fun max(): K
fun min(): K
fun floor(key: K): K
fun ceiling(key: K): K
fun max(): Option<K>
fun min(): Option<K>
fun floor(key: K): Option<K>
fun ceiling(key: K): Option<K>
}