empty<K, V> static method

  1. @useResult
IMapOfSets<K, V> empty<K, V>([
  1. ConfigMapOfSets? config
])

Returns an empty IMapOfSets, with the given configuration. If a configuration is not provided, it will use the default configuration.

Note: If you want to create an empty immutable collection of the same type and same configuration as a source collection, simply call clear in the source collection.

Implementation

@useResult
static IMapOfSets<K, V> empty<K, V>([ConfigMapOfSets? config]) {
  config ??= defaultConfig;
  return IMapOfSets<K, V>._unsafe(IMapImpl.empty(config.asConfigMap), config);
}