empty<K, V> static method

IMap<K, V> empty<K, V>([
  1. ConfigMap? config
])

Returns an empty IMap, 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

static IMap<K, V> empty<K, V>([ConfigMap? config]) =>
    IMap._unsafe(MFlat.empty<K, V>(), config: config ?? defaultConfig);