Results for “Std.SortedMap.SortedMap”
31 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.SortedMap.SortedMap
A map whose keys are kept in an order the caller chose, and which can be
- Std.SortedMap.all
&Std.SortedMap.SortedMap[K, V] -> fn(K, V) -> Bool -> BoolWhether every entry satisfies the predicate. True for an empty map.
- Std.SortedMap.any
&Std.SortedMap.SortedMap[K, V] -> fn(K, V) -> Bool -> BoolWhether any entry satisfies the predicate. False for an empty map.
- Std.SortedMap.ceiling
&Std.SortedMap.SortedMap[K, V] -> K -> Option[(K, V)]The smallest entry whose key is not less than the given one.
- Std.SortedMap.containsKey
&Std.SortedMap.SortedMap[K, V] -> K -> BoolWhether a key has an entry.
- Std.SortedMap.empty
fn(K, K) -> Bool -> Std.SortedMap.SortedMap[K, V]An empty map ordered by the given comparison.
- Std.SortedMap.filter
&Std.SortedMap.SortedMap[K, V] -> fn(K, V) -> Bool -> Std.SortedMap.SortedMap[K, V]Only the entries the predicate accepts.
- Std.SortedMap.first
&Std.SortedMap.SortedMap[K, V] -> Option[(K, V)]The smallest key and its value, or
Nonefor an empty map. - Std.SortedMap.floor
&Std.SortedMap.SortedMap[K, V] -> K -> Option[(K, V)]The largest entry whose key is not greater than the given one.
- Std.SortedMap.fold
&Std.SortedMap.SortedMap[K, V] -> fn(A, K, V) -> A -> A -> AEvery entry combined into one value, in key order.
- Std.SortedMap.fromPairs
&Array[(K, V)] -> fn(K, K) -> Bool -> Std.SortedMap.SortedMap[K, V]A map built from pairs, ordered by the given comparison.
- Std.SortedMap.get
&Std.SortedMap.SortedMap[K, V] -> K -> Option[V]The value stored under a key, or
None. - Std.SortedMap.getOr
&Std.SortedMap.SortedMap[K, V] -> K -> V -> VThe value stored under a key, or a fallback.
- Std.SortedMap.higher
&Std.SortedMap.SortedMap[K, V] -> K -> Option[(K, V)]The smallest entry whose key comes strictly after the given one.
- Std.SortedMap.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.
- Std.SortedMap.insertIfAbsent
&Std.SortedMap.SortedMap[K, V] -> K -> V -> Std.SortedMap.SortedMap[K, V]An entry added only when its key has none.
- Std.SortedMap.isEmpty
&Std.SortedMap.SortedMap[K, V] -> BoolWhether the map holds nothing.
- Std.SortedMap.keys
&Std.SortedMap.SortedMap[K, V] -> Array[K]Every key, in order.
- Std.SortedMap.last
&Std.SortedMap.SortedMap[K, V] -> Option[(K, V)]The largest key and its value, or
Nonefor an empty map. - Std.SortedMap.lower
&Std.SortedMap.SortedMap[K, V] -> K -> Option[(K, V)]The largest entry whose key comes strictly before the given one.
- Std.SortedMap.mapValues
&Std.SortedMap.SortedMap[K, A] -> fn(A) -> B -> Std.SortedMap.SortedMap[K, B]Every value transformed, keeping the keys and their order.
- Std.SortedMap.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.
- Std.SortedMap.nth
&Std.SortedMap.SortedMap[K, V] -> Int -> Option[(K, V)]The entry at a position in key order, or
Nonewhen there is none. - Std.SortedMap.pairs
&Std.SortedMap.SortedMap[K, V] -> Array[(K, V)]Every entry as a pair, in key order.
- Std.SortedMap.range
&Std.SortedMap.SortedMap[K, V] -> K -> K -> Array[(K, V)]Every entry whose key is at least
fromand strictly beforeuntil. - Std.SortedMap.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.
- Std.SortedMap.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.
- Std.SortedMap.reversed
&Std.SortedMap.SortedMap[K, V] -> Std.SortedMap.SortedMap[K, V]The map with its entries in the reverse of its order.
- Std.SortedMap.size
&Std.SortedMap.SortedMap[K, V] -> IntHow many entries the map holds.
- Std.SortedMap.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.
- Std.SortedMap.values
&Std.SortedMap.SortedMap[K, V] -> Array[V]Every value, in the order of its key.
