Std.HashMap
23 public declarations
- bucketCount
&Std.HashMap.HashMap[K, V] -> Int where K: Eq + HashHow many buckets the map is currently spread across.
- containsKey
&Std.HashMap.HashMap[K, V] -> &K -> Bool where K: Eq + HashWhether a key is present.
- empty
Std.HashMap.HashMap[K, V] where K: Eq + HashA map holding nothing.
- entries
&Std.HashMap.HashMap[K, V] -> Array[(K, V)] where K: Eq + HashEvery pairing, in the order the keys were first put in.
- Entry
One pairing, with the position it was first put in.
- equals
&Std.HashMap.HashMap[K, V] -> &Std.HashMap.HashMap[K, V] -> Bool where K: Eq + Hash, V: EqWhether two maps hold the same pairings.
- filter
&Std.HashMap.HashMap[K, V] -> fn(K, V) -> Bool -> Std.HashMap.HashMap[K, V] where K: Eq + HashA map holding only the pairings a test accepts.
- fold
&Std.HashMap.HashMap[K, V] -> A -> fn(A, K, V) -> A -> A where K: Eq + HashEvery pairing combined into one value, in insertion order.
- fromArray
&Array[(K, V)] -> Std.HashMap.HashMap[K, V] where K: Eq + HashA map built from pairings, later ones replacing earlier ones.
- get
&Std.HashMap.HashMap[K, V] -> &K -> Option[V] where K: Eq + HashThe value under a key, or nothing when the map does not hold it.
- getOr
&Std.HashMap.HashMap[K, V] -> &K -> V -> V where K: Eq + HashThe value under a key, or a fallback when the map does not hold it.
- HashMap
A map that finds a key by hashing it rather than by comparing it.
- insert
&Std.HashMap.HashMap[K, V] -> K -> V -> Std.HashMap.HashMap[K, V] where K: Eq + HashA map with a pairing added, replacing any value already under the key.
- insertWith
&Std.HashMap.HashMap[K, V] -> K -> V -> fn(V, V) -> V -> Std.HashMap.HashMap[K, V] where K: Eq + HashA map with a pairing added, combining with any value already there.
- isEmpty
&Std.HashMap.HashMap[K, V] -> Bool where K: Eq + HashWhether a map holds nothing.
- keys
&Std.HashMap.HashMap[K, V] -> Array[K] where K: Eq + HashEvery key, in the order they were first put in.
- map
&Std.HashMap.HashMap[K, V] -> fn(V) -> W -> Std.HashMap.HashMap[K, W] where K: Eq + HashA map with every value transformed, keeping keys and their order.
- merge
&Std.HashMap.HashMap[K, V] -> &Std.HashMap.HashMap[K, V] -> Std.HashMap.HashMap[K, V] where K: Eq + HashTwo maps joined, the second's value winning where both hold a key.
- mergeWith
&Std.HashMap.HashMap[K, V] -> &Std.HashMap.HashMap[K, V] -> fn(V, V) -> V -> Std.HashMap.HashMap[K, V] where K: Eq + HashTwo maps joined, a rule deciding where both hold a key.
- remove
&Std.HashMap.HashMap[K, V] -> &K -> Std.HashMap.HashMap[K, V] where K: Eq + HashA map with a key removed, or the same map when it held none.
- singleton
K -> V -> Std.HashMap.HashMap[K, V] where K: Eq + HashA map holding one pairing.
- size
&Std.HashMap.HashMap[K, V] -> Int where K: Eq + HashHow many pairings a map holds.
- values
&Std.HashMap.HashMap[K, V] -> Array[V] where K: Eq + HashEvery value, in the order their keys were first put in.
