% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/50-ordered_sequence-constructors.R
\name{ordered_sequence}
\alias{ordered_sequence}
\title{Construct an Ordered Sequence}
\usage{
ordered_sequence(..., keys)
}
\arguments{
\item{...}{Elements to add.}

\item{keys}{Key values with the same length as \code{...}.}
}
\value{
An \code{ordered_sequence}.
}
\description{
Convenience constructor from \code{...} and matching \code{keys}.
}
\details{
Empty construction is supported: \code{ordered_sequence()} returns an empty
ordered sequence.

Output is always sorted by key, with stable order across duplicate keys.
}
\examples{
xs <- ordered_sequence("bb", "a", "ccc", keys = c(2, 1, 3))
xs
lower_bound(xs, 2)

num_by_chr <- ordered_sequence(20, 10, 30, keys = c("b", "a", "c"))
num_by_chr

ordered_sequence()
}
