DetailedWhere<K, V> extension

on

Methods

where(bool f(K key, V value)) Map<K, V>

Available on Map<K, V>, provided by the DetailedWhere extension

Filters the map by its keys and values using the provided predicate function. The function f takes a key and a value as parameters and returns a boolean indicating whether the key-value pair should be included in the resulting map.
whereKey(bool f(K key)) Map<K, V>

Available on Map<K, V>, provided by the DetailedWhere extension

Filters the map by its keys using the provided predicate function. The function f takes a key as a parameter and returns a boolean indicating whether the key should be included in the resulting map.
whereValue(bool f(V value)) Map<K, V>

Available on Map<K, V>, provided by the DetailedWhere extension

Filters the map by its values using the provided predicate function. The function f takes a value as a parameter and returns a boolean indicating whether the value should be included in the resulting map.