/// <summary> /// Reduces the queue in ascending order. /// </summary> /// <typeparam name="A">The type of the accumulator.</typeparam> /// <param name="binOp">The binary operation.</param> /// <param name="initial">The initial accumulator value.</param> /// <returns> /// The final accumulator value. /// </returns> public A FoldLeft <A>(Func <A, PriorityValuePair <T, TPriority>, A> binOp, A initial) { return(_ft.FoldLeft(binOp, initial)); }
/// <summary> /// Reduces the sequence in ascending order. /// </summary> /// <typeparam name="A">The type of the accumulator.</typeparam> /// <param name="binOp">The binary operation.</param> /// <param name="initial">The initial accumulator value.</param> /// <returns> /// The final accumulator value. /// </returns> public A FoldLeft <A>(Func <A, T, A> binOp, A initial) { return(_ft.FoldLeft((a, el) => binOp(a, el.Value), initial)); }