Exemple #1
0
 /// <summary>
 /// Removes the maximal key-value pair from this map.
 /// </summary>
 /// <returns></returns>
 public ImmSortedMap <TKey, TValue> RemoveMax()
 {
     if (Root.IsEmpty)
     {
         throw Errors.Is_empty;
     }
     return(Root.RemoveMax(Lineage.Mutable()).WrapMap(Comparer));
 }