clearSet method

  1. @useCopy
IMapOfSets<K, V> clearSet(
  1. K key
)

When removeEmptySets is true, the given key and its corresponding set will be removed. This is the same as calling removeSet.

When removeEmptySets is false, the set for the corresponding key will become empty.

Implementation

@useCopy
IMapOfSets<K, V> clearSet(K key) => replaceSet(key, ISetImpl.empty<V>());