% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/30-api-flexseq-core.R
\name{unlist.flexseq}
\alias{unlist.flexseq}
\title{Coerce a Sequence to an Atomic Vector}
\usage{
\method{unlist}{flexseq}(x, recursive = TRUE, use.names = TRUE)
}
\arguments{
\item{x}{A \code{flexseq}.}

\item{recursive}{Passed through to \code{\link[base:unlist]{base::unlist()}}.}

\item{use.names}{Passed through to \code{\link[base:unlist]{base::unlist()}}.}
}
\value{
An atomic vector built from \code{\link[=as.list.flexseq]{as.list.flexseq()}}.
}
\description{
Convenience wrapper around \code{\link[base:unlist]{base::unlist()}} over \code{\link[=as.list]{as.list()}}.
}
\details{
For \code{priority_queue}, this unwraps queue entries to payload items before
unlisting (equivalent to \code{unlist(as.list(x, drop_meta = TRUE), ...)}).

Inherited by \code{ordered_sequence} and \code{interval_index} through the shared
class stack.
}
\examples{
x <- flexseq(1, 2, 3)
unlist(x)

q <- priority_queue("a", "b", priorities = c(2, 1))
unlist(q)
}
