Std.EnumMap
22 public declarations
- adjust
&Std.EnumMap.EnumMap[K, V] -> K -> fn(V) -> V -> Std.EnumMap.EnumMap[K, V]A key's value transformed, unchanged when the key is outside the domain.
- all
&Std.EnumMap.EnumMap[K, V] -> fn(K, V) -> Bool -> BoolWhether every entry satisfies the predicate. True over an empty domain.
- any
&Std.EnumMap.EnumMap[K, V] -> fn(K, V) -> Bool -> BoolWhether any entry satisfies the predicate. False over an empty domain.
- containsKey
&Std.EnumMap.EnumMap[K, V] -> K -> BoolWhether a key is in the domain.
- countValues
&Std.EnumMap.EnumMap[K, V] -> fn(V) -> Bool -> IntHow many values the predicate accepts.
- EnumMap
A map over a fixed set of keys, where every key has a value.
- filled
&Array[K] -> V -> Std.EnumMap.EnumMap[K, V]A map giving every key in the domain the same starting value.
- find
&Std.EnumMap.EnumMap[K, V] -> K -> Option[V]The value stored under a key, or `None` when the key is outside the domain.
- fold
&Std.EnumMap.EnumMap[K, V] -> fn(A, K, V) -> A -> A -> AEvery entry combined into one value, in domain order.
- from
&Array[K] -> fn(K) -> V -> Std.EnumMap.EnumMap[K, V]A map giving every key in the domain the value a function computes for it.
- get
&Std.EnumMap.EnumMap[K, V] -> K -> VThe value stored under a key.
- getOr
&Std.EnumMap.EnumMap[K, V] -> K -> V -> VThe value stored under a key, or the given fallback when the key is not in
- isEmpty
&Std.EnumMap.EnumMap[K, V] -> BoolWhether the domain names any key at all.
- keys
&Std.EnumMap.EnumMap[K, V] -> Array[K]Every key, in the order the domain named them.
- keysWhere
&Std.EnumMap.EnumMap[K, V] -> fn(V) -> Bool -> Array[K]The keys whose values the predicate accepts.
- mapValues
&Std.EnumMap.EnumMap[K, A] -> fn(A) -> B -> Std.EnumMap.EnumMap[K, B]Every value transformed, keeping the domain and its order.
- mergeWith
&Std.EnumMap.EnumMap[K, V] -> &Std.EnumMap.EnumMap[K, V] -> fn(V, V) -> V -> Std.EnumMap.EnumMap[K, V]Two maps over the same domain combined value by value.
- pairs
&Std.EnumMap.EnumMap[K, V] -> Array[(K, V)]Every entry as a pair, in domain order.
- set
&Std.EnumMap.EnumMap[K, V] -> K -> V -> Std.EnumMap.EnumMap[K, V]The map with a key's value replaced, unchanged when the key is outside the
- size
&Std.EnumMap.EnumMap[K, V] -> IntHow many keys the domain holds.
- toMap
&Std.EnumMap.EnumMap[K, V] -> Map[K, V]The map as an ordinary map, losing the promise that every key has a value.
- values
&Std.EnumMap.EnumMap[K, V] -> Array[V]Every value, in the order of its key.
