/// <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))); }
/// <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))); }