removeValuesFromKeyWhere method

IMapOfSets<K, V> removeValuesFromKeyWhere(
  1. K key,
  2. bool test(
    1. V value
    )
)

Remove, from the given key set, all values that satisfy the given test. If the set becomes empty, the key will be removed entirely.

See also: removeValuesWhere that lets you remove values from many keys.

Implementation

IMapOfSets<K, V> removeValuesFromKeyWhere(
  K key,
  bool Function(V value) test,
) =>
    update(key, (ISet<V> set) => set.removeWhere(test));