View source: R/40-priority_queue-queue-ops.R
| pop_all_max | R Documentation |
Removes the full maximum-priority tie run.
pop_all_max(x)
x |
A |
The return elements is another priority_queue(), use as.list() to
convert the result to a standard R list.
A list with fields:
elements: priority_queue of removed maximum-priority elements.
remaining: queue after removal.
x <- priority_queue("a", "b", "c", priorities = c(2, 3, 3))
out <- pop_all_max(x)
out$elements
out$remaining
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.