View source: R/40-priority_queue-methods.R
| length.priority_queue | R Documentation |
Priority Queue Length
## S3 method for class 'priority_queue'
length(x)
x |
A |
Uses cached size metadata and runs in O(1).
Integer length.
q <- priority_queue("a", "b", priorities = c(2, 1))
length(q)
length(priority_queue())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.