Exemplo n.º 1
0
 /// <summary>
 /// Intersects the queue with <paramref name="otherQueue"/>.
 /// </summary>
 /// <param name="otherQueue">The other queue.</param>
 public PriorityQueue <T, TPriority> Intersect(PriorityQueue <T, TPriority> otherQueue)
 {
     return(new PriorityQueue <T, TPriority>(_ft.Intersect(otherQueue._ft)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Intersects the sequence with <paramref name="otherSequence"/>.
 /// </summary>
 /// <param name="otherSequence">The other sequence.</param>
 public OrderedSequence <T> Intersect(OrderedSequence <T> otherSequence)
 {
     return(new OrderedSequence <T>(_ft.Intersect(otherSequence._ft)));
 }