Hi,

Could you explain why "peek" returns the pair (key,value) whereas 
"dequeue!" only returns the key?

using Base.Collections
pq = PriorityQueue()
enqueue!(pq, key, value)
key, value = Collections.peek(pq)
key = dequeue!(pq)

I wanted to have a single line in which I retrieve both (key,value) and at 
the same time remove the pair from the collection:

key, value = dequeue!(pq)

Should I open an issue on GitHub?

-Júlio

Reply via email to