示例#1
0
 /// <summary>
 /// Returns the union of the queue with specified other queue.
 /// </summary>
 /// <param name="otherqueue">The other queue.</param>
 public PriorityQueue <T, TPriority> Union(PriorityQueue <T, TPriority> otherqueue)
 {
     return(new PriorityQueue <T, TPriority>(_ft.Merge(otherqueue._ft)));
 }
示例#2
0
 /// <summary>
 /// Returns the union of the sequence with specified other sequence.
 /// </summary>
 /// <param name="otherSequence">The other sequence.</param>
 public OrderedSequence <T> Union(OrderedSequence <T> otherSequence)
 {
     return(new OrderedSequence <T>(_ft.Merge(otherSequence._ft)));
 }