/// <summary> /// See the <see cref="IImmutableDictionary<TKey, TValue>"/> interface. /// </summary> public ImmutableHashMap <TKey, TValue> Clear() { return(this.IsEmpty ? this : Empty.WithComparers(this.keyComparer, this.valueComparer)); }
/// <summary> /// See the <see cref="IImmutableDictionary<TKey, TValue>"/> interface. /// </summary> public ImmutableHashMap <TKey, TValue> Clear() => this.IsEmpty ? this : Empty.WithComparers(_keyComparer, _valueComparer);