Example #1
0
 /// <summary>
 ///  Returns an iterator which yields all values of the queue in the reverse order.
 /// </summary>
 /// <remarks>
 /// This should always be equivalent to, but faster than,
 /// <code>
 ///  AsEnumerable().Reverse();
 /// </code>
 /// </remarks>
 public IEnumerable <PriorityValuePair <T, TPriority> > ReverseIterator()
 {
     return(_ft.ReverseIterator());
 }
Example #2
0
 /// <summary>
 ///  Returns an iterator which yields all elements of the sequence in the reverse order.
 /// </summary>
 /// <remarks>
 /// This should always be equivalent to, but faster than,
 /// <code>
 ///  AsEnumerable().Reverse();
 /// </code>
 /// </remarks>
 public IEnumerable <T> ReverseIterator()
 {
     return(_ft.ReverseIterator().Select(el => el.Value));
 }