Results for “Std.BiMap.BiMap”
24 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.BiMap.BiMap
A map that can be read from either side.
- Std.BiMap.all
&Std.BiMap.BiMap[L, R] -> fn(L, R) -> Bool -> BoolWhether every pair satisfies the predicate. True for an empty map.
- Std.BiMap.any
&Std.BiMap.BiMap[L, R] -> fn(L, R) -> Bool -> BoolWhether any pair satisfies the predicate. False for an empty map.
- Std.BiMap.containsLeft
&Std.BiMap.BiMap[L, R] -> L -> BoolWhether a left value is paired with anything.
- Std.BiMap.containsRight
&Std.BiMap.BiMap[L, R] -> R -> BoolWhether a right value is paired with anything.
- Std.BiMap.empty
Std.BiMap.BiMap[L, R]A map with no pairs.
- Std.BiMap.filter
&Std.BiMap.BiMap[L, R] -> fn(L, R) -> Bool -> Std.BiMap.BiMap[L, R]Only the pairs the predicate accepts.
- Std.BiMap.flipped
&Std.BiMap.BiMap[L, R] -> Std.BiMap.BiMap[R, L]The map with its two sides exchanged.
- Std.BiMap.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.
- Std.BiMap.fromPairs
&Array[(L, R)] -> Std.BiMap.BiMap[L, R]A map built from pairs.
- Std.BiMap.fromPairsChecked
&Array[(L, R)] -> Option[Std.BiMap.BiMap[L, R]]A map built from pairs, or
Noneif any side repeats. - Std.BiMap.getLeft
&Std.BiMap.BiMap[L, R] -> R -> Option[L]The left value paired with a right one, or
None. - Std.BiMap.getRight
&Std.BiMap.BiMap[L, R] -> L -> Option[R]The right value paired with a left one, or
None. - Std.BiMap.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.
- Std.BiMap.insertChecked
&Std.BiMap.BiMap[L, R] -> L -> R -> Option[Std.BiMap.BiMap[L, R]]The map with a pair added, or
Nonewhen either side is already paired. - Std.BiMap.isEmpty
&Std.BiMap.BiMap[L, R] -> BoolWhether the map holds nothing.
- Std.BiMap.lefts
&Std.BiMap.BiMap[L, R] -> Array[L]Every left value, in order.
- Std.BiMap.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.
- Std.BiMap.pairs
&Std.BiMap.BiMap[L, R] -> Array[(L, R)]Every pair, in the order of its left value.
- Std.BiMap.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.
- Std.BiMap.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.
- Std.BiMap.rights
&Std.BiMap.BiMap[L, R] -> Array[R]Every right value, in order.
- Std.BiMap.size
&Std.BiMap.BiMap[L, R] -> IntHow many pairs the map holds.
- Std.BiMap.toMap
&Std.BiMap.BiMap[L, R] -> Map[L, R]The left-to-right direction as an ordinary map.
