Priority Queue Length
Usage
# S3 method for class 'priority_queue'
length(x)Examples
q <- priority_queue("a", "b", priorities = c(2, 1))
length(q)
#> [1] 2
length(priority_queue())
#> [1] 0
Priority Queue Length
# S3 method for class 'priority_queue'
length(x)q <- priority_queue("a", "b", priorities = c(2, 1))
length(q)
#> [1] 2
length(priority_queue())
#> [1] 0