Tests whether or not map contains a key.
Removes binding for given key.
Deletes all entries associated with the specified keys.
Finds the key/value pair matching the specified predicate, and uses the provided function to extract a value out of it.
Finds all the key/value pairs matching the specified predicate, and uses the provided function to extract values out them.
Finds all the key/value pairs matching the specified predicate, and uses the provided effectful function to extract values out of them..
Finds the key/value pair matching the specified predicate, and uses the provided effectful function to extract a value out of it.
Atomically folds using a pure function.
Atomically folds using a transactional function.
Atomically performs transactional-effect for each binding present in map.
Retrieves value associated with given key.
Retrieves value associated with given key or default value, in case the key isn't present.
Tests if the map is empty or not
Collects all keys stored in map.
If the key k
is not already associated with a value, stores the provided
value, otherwise merge the existing value with the new one using function
f
and store the result
Stores new binding into the map.
Stores new binding in the map if it does not already exist.
Removes bindings matching predicate and returns the removed entries.
Removes bindings matching predicate.
Retains bindings matching predicate and returns removed bindings.
Retains bindings matching predicate.
Returns the number of bindings.
Takes the first matching value, or retries until there is one.
Takes all matching values, or retries until there is at least one.
Takes all matching values, or retries until there is at least one.
Collects all bindings into a chunk.
Collects all bindings into a list.
Collects all bindings into a map.
Atomically updates all bindings using a pure function.
Atomically updates all bindings using a transactional function.
Atomically updates all values using a pure function.
Atomically updates all values using a transactional function.
Updates the mapping for the specified key with the specified function,
which takes the current value of the key as an input, if it exists, and
either returns Some
with a new value to indicate to update the value in
the map or None
to remove the value from the map.
Updates the mapping for the specified key with the specified function,
which takes the current value of the key as an input, if it exists, and
either returns Some
with a new value to indicate to update the value in
the map or None
to remove the value from the map. Returns Some
with the
updated value or None
if the value was removed from the map.
Collects all values stored in map.
Atomically folds using a transactional function.
Atomically folds using a transactional function.
(Since version 2.0.0) use foldSTM
Atomically updates all bindings using a transactional function.
Atomically updates all bindings using a transactional function.
(Since version 2.0.0) use transformSTM
Atomically updates all values using a transactional function.
Atomically updates all values using a transactional function.
(Since version 2.0.0) use transformValuesSTM
Transactional map implemented on top of TRef and TArray. Resolves conflicts via chaining.