/// <summary> /// removes the minimal key-value pair from this map. /// </summary> /// <returns></returns> public ImmSortedMap <TKey, TValue> RemoveMin() { if (Root.IsEmpty) { throw Errors.Is_empty; } return(Root.RemoveMin(Lineage.Mutable()).WrapMap(Comparer)); }
/// <summary> /// Removes the minimal element from this set. /// </summary> /// <returns></returns> public ImmSortedSet <T> RemoveMin() { return(Root.RemoveMin(Lineage.Mutable()).Wrap(Comparer)); }