Std.BiMap
24 public declarations
- all
&Std.BiMap.BiMap[L, R] -> fn(L, R) -> Bool -> BoolWhether every pair satisfies the predicate. True for an empty map.
- any
&Std.BiMap.BiMap[L, R] -> fn(L, R) -> Bool -> BoolWhether any pair satisfies the predicate. False for an empty map.
- BiMap
A map that can be read from either side.
- containsLeft
&Std.BiMap.BiMap[L, R] -> L -> BoolWhether a left value is paired with anything.
- containsRight
&Std.BiMap.BiMap[L, R] -> R -> BoolWhether a right value is paired with anything.
- empty
Std.BiMap.BiMap[L, R]A map with no pairs.
- filter
&Std.BiMap.BiMap[L, R] -> fn(L, R) -> Bool -> Std.BiMap.BiMap[L, R]Only the pairs the predicate accepts.
- flipped
&Std.BiMap.BiMap[L, R] -> Std.BiMap.BiMap[R, L]The map with its two sides exchanged.
- fold
&Std.BiMap.BiMap[L, R] -> fn(A, L, R) -> A -> A -> AEvery pair combined into one value, in the order of the left values.
- fromPairs
&Array[(L, R)] -> Std.BiMap.BiMap[L, R]A map built from pairs.
- fromPairsChecked
&Array[(L, R)] -> Option[Std.BiMap.BiMap[L, R]]A map built from pairs, or `None` if any side repeats.
- getLeft
&Std.BiMap.BiMap[L, R] -> R -> Option[L]The left value paired with a right one, or `None`.
- getRight
&Std.BiMap.BiMap[L, R] -> L -> Option[R]The right value paired with a left one, or `None`.
- insert
&Std.BiMap.BiMap[L, R] -> L -> R -> Std.BiMap.BiMap[L, R]The map with a pair added, displacing whatever either side was paired with.
- insertChecked
&Std.BiMap.BiMap[L, R] -> L -> R -> Option[Std.BiMap.BiMap[L, R]]The map with a pair added, or `None` when either side is already paired.
- isEmpty
&Std.BiMap.BiMap[L, R] -> BoolWhether the map holds nothing.
- lefts
&Std.BiMap.BiMap[L, R] -> Array[L]Every left value, in order.
- merge
&Std.BiMap.BiMap[L, R] -> &Std.BiMap.BiMap[L, R] -> Std.BiMap.BiMap[L, R]Two maps combined, with the second map's pairs displacing the first's.
- pairs
&Std.BiMap.BiMap[L, R] -> Array[(L, R)]Every pair, in the order of its left value.
- removeLeft
&Std.BiMap.BiMap[L, R] -> L -> Std.BiMap.BiMap[L, R]The map with a left value's pair removed, or unchanged when it has none.
- removeRight
&Std.BiMap.BiMap[L, R] -> R -> Std.BiMap.BiMap[L, R]The map with a right value's pair removed, or unchanged when it has none.
- rights
&Std.BiMap.BiMap[L, R] -> Array[R]Every right value, in order.
- size
&Std.BiMap.BiMap[L, R] -> IntHow many pairs the map holds.
- toMap
&Std.BiMap.BiMap[L, R] -> Map[L, R]The left-to-right direction as an ordinary map.
