% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/40-priority_queue-methods.R
\name{as.list.priority_queue}
\alias{as.list.priority_queue}
\title{Coerce Priority Queue to List}
\usage{
\method{as.list}{priority_queue}(x, ..., drop_meta = FALSE)
}
\arguments{
\item{x}{A \code{priority_queue}.}

\item{...}{Unused.}

\item{drop_meta}{Logical scalar. When \code{FALSE} (default), returns full queue
entry records (\code{value} + \code{priority}). When \code{TRUE}, returns payload values
only.}
}
\value{
A plain list of queue entry records (\code{drop_meta = FALSE}) or payload
values (\code{drop_meta = TRUE}).
}
\description{
Returns queue entries as a plain list of records with fields \code{value} and
\code{priority}, in queue sequence order.
}
\details{
Each returned entry is a record with fields \code{value} and \code{priority}.
Entry names (when present) are preserved on the returned list.
}
\examples{
q <- priority_queue("a", "b", priorities = c(2, 1))
as.list(q)
as.list(q, drop_meta = TRUE)
}
