예제 #1
0
 public void Sub(KeyedVectorPartial <TIndex> vec)
 {
     foreach (var pair in vec)
     {
         Dict[pair.Key] -= pair.Value;
     }
 }
예제 #2
0
 public bool IsBigger(KeyedVectorPartial <TIndex> smaller)
 {
     foreach (var pair in smaller)
     {
         if (pair.Value > this[pair.Key])
         {
             return(false);
         }
     }
     return(true);
 }