empty<T> static method

ISetImpl<T> empty<T>([
  1. ConfigSet? config
])

Returns an empty ISet, 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 on the source collection.

Implementation

static ISetImpl<T> empty<T>([ConfigSet? config]) =>
    ISetImpl._unsafe(SFlat.empty<T>(), config: config ?? ISet.defaultConfig);