Exemple #1
0
 /// <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));
 }
Exemple #2
0
 /// <summary>
 /// Removes the minimal element from this set.
 /// </summary>
 /// <returns></returns>
 public ImmSortedSet <T> RemoveMin()
 {
     return(Root.RemoveMin(Lineage.Mutable()).Wrap(Comparer));
 }