View source: R/40-priority_queue-queue-ops.R
| max_priority | R Documentation |
Returns the current maximum priority scalar in the queue.
max_priority(x)
x |
A |
Uses cached .pq_max monoid state.
Maximum priority value, or NULL when x is empty.
q <- priority_queue("a", "b", priorities = c(2, 1))
max_priority(q)
max_priority(priority_queue())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.