Std.MultiKeyMap
24 public declarations
- containsFirst
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> A -> BoolWhether any entry's key begins with this first part.
- containsKey
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> A -> B -> BoolWhether both parts of a key name an entry.
- containsSecond
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> B -> BoolWhether any entry's key ends with this second part.
- empty
Std.MultiKeyMap.MultiKeyMap[A, B, V]A map with no entries.
- entries
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> Array[(A, B, V)]Every entry as its two key parts and its value, in key order.
- firsts
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> Array[A]Every distinct first part, in order.
- firstsFor
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> B -> Array[A]Every first part paired with a given second part.
- fold
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> fn(R, A, B, V) -> R -> R -> REvery entry combined into one value, in key order.
- fromEntries
&Array[(A, B, V)] -> Std.MultiKeyMap.MultiKeyMap[A, B, V]A map built from triples of first part, second part, and value.
- get
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> A -> B -> Option[V]The value under both parts of a key, or `None`.
- getOr
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> A -> B -> V -> VThe value under both parts of a key, or a fallback.
- insert
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> A -> B -> V -> Std.MultiKeyMap.MultiKeyMap[A, B, V]The map with an entry added or replaced.
- isEmpty
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> BoolWhether the map holds nothing.
- MultiKeyMap
A map keyed by two things, which can also be asked about either one alone.
- remove
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> A -> B -> Std.MultiKeyMap.MultiKeyMap[A, B, V]The map with an entry removed, or unchanged when there is none.
- removeFirst
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> A -> Std.MultiKeyMap.MultiKeyMap[A, B, V]The map with every entry whose key begins with this first part removed.
- removeSecond
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> B -> Std.MultiKeyMap.MultiKeyMap[A, B, V]The map with every entry whose key ends with this second part removed.
- seconds
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> Array[B]Every distinct second part, in order.
- secondsFor
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> A -> Array[B]Every second part paired with a given first part.
- size
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> IntHow many entries the map holds.
- toMap
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> Map[(A, B), V]The entries as an ordinary map keyed by the pair, losing the indexes.
- values
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> Array[V]Every value, in key order.
- withFirst
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> A -> Array[(B, V)]Every entry whose key begins with this first part.
- withSecond
&Std.MultiKeyMap.MultiKeyMap[A, B, V] -> B -> Array[(A, V)]Every entry whose key ends with this second part.
