foldrWithKey package:pqueue

Fold the keys and values in the map, such that foldrWithKey f z q == foldr (uncurry f) z (toDescList q). If you do not care about the traversal order, consider using foldrWithKeyU.
Fold the keys and values in the map, such that foldrWithKey f z q == foldr (uncurry f) z (toAscList q). If you do not care about the traversal order, consider using foldrWithKeyU.
An unordered right fold over the elements of the queue, in no particular order.
An unordered right fold over the elements of the queue, in no particular order.