Convenience wrapper around base::unlist() over as.list().
Usage
# S3 method for class 'flexseq'
unlist(s, ...)Arguments
- s
A
flexseq.- ...
Passed through to
base::unlist().
Value
An atomic vector built from as.list.flexseq().
Details
For priority_queue, this unwraps queue entries to payload items before
unlisting (equivalent to unlist(as.list(s, drop_meta = TRUE), ...)).
Inherited by ordered_sequence and interval_index through the shared
class stack.
Examples
x <- flexseq(1, 2, 3)
unlist(x)
#> [1] 1 2 3
q <- priority_queue("a", "b", priorities = c(2, 1))
unlist(q)
#> [1] "a" "b"