Std.SortedMap
31 public declarations
- all
&Std.SortedMap.SortedMap[K, V] -> fn(K, V) -> Bool -> BoolWhether every entry satisfies the predicate. True for an empty map.
- any
&Std.SortedMap.SortedMap[K, V] -> fn(K, V) -> Bool -> BoolWhether any entry satisfies the predicate. False for an empty map.
- ceiling
&Std.SortedMap.SortedMap[K, V] -> K -> Option[(K, V)]The smallest entry whose key is not less than the given one.
- containsKey
&Std.SortedMap.SortedMap[K, V] -> K -> BoolWhether a key has an entry.
- empty
fn(K, K) -> Bool -> Std.SortedMap.SortedMap[K, V]An empty map ordered by the given comparison.
- filter
&Std.SortedMap.SortedMap[K, V] -> fn(K, V) -> Bool -> Std.SortedMap.SortedMap[K, V]Only the entries the predicate accepts.
- first
&Std.SortedMap.SortedMap[K, V] -> Option[(K, V)]The smallest key and its value, or `None` for an empty map.
- floor
&Std.SortedMap.SortedMap[K, V] -> K -> Option[(K, V)]The largest entry whose key is not greater than the given one.
- fold
&Std.SortedMap.SortedMap[K, V] -> fn(A, K, V) -> A -> A -> AEvery entry combined into one value, in key order.
- fromPairs
&Array[(K, V)] -> fn(K, K) -> Bool -> Std.SortedMap.SortedMap[K, V]A map built from pairs, ordered by the given comparison.
- get
&Std.SortedMap.SortedMap[K, V] -> K -> Option[V]The value stored under a key, or `None`.
- getOr
&Std.SortedMap.SortedMap[K, V] -> K -> V -> VThe value stored under a key, or a fallback.
- higher
&Std.SortedMap.SortedMap[K, V] -> K -> Option[(K, V)]The smallest entry whose key comes strictly after the given one.
- insert
&Std.SortedMap.SortedMap[K, V] -> K -> V -> Std.SortedMap.SortedMap[K, V]The map with an entry added, replacing any entry under the same key.
- insertIfAbsent
&Std.SortedMap.SortedMap[K, V] -> K -> V -> Std.SortedMap.SortedMap[K, V]An entry added only when its key has none.
- isEmpty
&Std.SortedMap.SortedMap[K, V] -> BoolWhether the map holds nothing.
- keys
&Std.SortedMap.SortedMap[K, V] -> Array[K]Every key, in order.
- last
&Std.SortedMap.SortedMap[K, V] -> Option[(K, V)]The largest key and its value, or `None` for an empty map.
- lower
&Std.SortedMap.SortedMap[K, V] -> K -> Option[(K, V)]The largest entry whose key comes strictly before the given one.
- mapValues
&Std.SortedMap.SortedMap[K, A] -> fn(A) -> B -> Std.SortedMap.SortedMap[K, B]Every value transformed, keeping the keys and their order.
- merge
&Std.SortedMap.SortedMap[K, V] -> &Std.SortedMap.SortedMap[K, V] -> Std.SortedMap.SortedMap[K, V]Two maps combined, with the second map's entries winning.
- nth
&Std.SortedMap.SortedMap[K, V] -> Int -> Option[(K, V)]The entry at a position in key order, or `None` when there is none.
- pairs
&Std.SortedMap.SortedMap[K, V] -> Array[(K, V)]Every entry as a pair, in key order.
- range
&Std.SortedMap.SortedMap[K, V] -> K -> K -> Array[(K, V)]Every entry whose key is at least `from` and strictly before `until`.
- remove
&Std.SortedMap.SortedMap[K, V] -> K -> Std.SortedMap.SortedMap[K, V]The map with a key's entry removed, or unchanged when there is none.
- restrictRange
&Std.SortedMap.SortedMap[K, V] -> K -> K -> Std.SortedMap.SortedMap[K, V]The map with only the entries in the half-open range kept.
- reversed
&Std.SortedMap.SortedMap[K, V] -> Std.SortedMap.SortedMap[K, V]The map with its entries in the reverse of its order.
- size
&Std.SortedMap.SortedMap[K, V] -> IntHow many entries the map holds.
- SortedMap
A map whose keys are kept in an order the caller chose, and which can be
- upsert
&Std.SortedMap.SortedMap[K, V] -> K -> V -> fn(V) -> V -> Std.SortedMap.SortedMap[K, V]An entry's value transformed, inserting a starting value when it is absent.
- values
&Std.SortedMap.SortedMap[K, V] -> Array[V]Every value, in the order of its key.
