Std.IntMap
21 public declarations
- adjust
&Std.IntMap.IntMap[V] -> Int -> fn(V) -> V -> Std.IntMap.IntMap[V]Updates the value at key if present using function f.
- delete
&Std.IntMap.IntMap[V] -> Int -> Std.IntMap.IntMap[V]Deletes the entry for key if present in the map.
- difference
&Std.IntMap.IntMap[V] -> &Std.IntMap.IntMap[V] -> Std.IntMap.IntMap[V]Computes the difference of two maps (entries in left whose keys are not in right).
- empty
Std.IntMap.IntMap[V]Constructs an empty integer map.
- entries
&Std.IntMap.IntMap[V] -> Array[Std.IntMap.IntMapEntry[V]]Returns an array of all key-value entries in key order.
- get
&Std.IntMap.IntMap[V] -> Int -> Option[V]Looks up the value associated with key in the map.
- getOr
&Std.IntMap.IntMap[V] -> Int -> V -> VLooks up the value associated with key, returning fallback if absent.
- insert
&Std.IntMap.IntMap[V] -> Int -> V -> Std.IntMap.IntMap[V]Inserts or replaces a key-value pairing in the map.
- intersection
&Std.IntMap.IntMap[V] -> &Std.IntMap.IntMap[V] -> Std.IntMap.IntMap[V]Computes the intersection of two maps, keeping values from the left map.
- IntMap
A purely functional bitwise integer Patricia Trie mapping 64-bit integer keys to values.
- IntMapEntry
A key-value pairing retrieved from an IntMap.
- isEmpty
&Std.IntMap.IntMap[V] -> BoolWhether the map contains no entries.
- keys
&Std.IntMap.IntMap[V] -> Array[Int]Returns an array of all keys in ascending order.
- mapValues
&Std.IntMap.IntMap[A] -> fn(A) -> B -> Std.IntMap.IntMap[B]Transforms all values in the map using function f.
- maxKey
&Std.IntMap.IntMap[V] -> Option[Int]Returns the largest key present in the map, or None if empty.
- member
&Std.IntMap.IntMap[V] -> Int -> BoolWhether the map contains an entry for key.
- minKey
&Std.IntMap.IntMap[V] -> Option[Int]Returns the smallest key present in the map, or None if empty.
- singleton
Int -> V -> Std.IntMap.IntMap[V]Constructs an integer map with a single key-value pairing.
- size
&Std.IntMap.IntMap[V] -> IntThe number of entries contained in the map.
- union
&Std.IntMap.IntMap[V] -> &Std.IntMap.IntMap[V] -> Std.IntMap.IntMap[V]Computes the union of two maps, preferring values in left on duplicate keys.
- values
&Std.IntMap.IntMap[V] -> Array[V]Returns an array of all values in key order.
