% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/60-interval_index-constructors.R
\name{interval_index}
\alias{interval_index}
\title{Construct an Interval Index}
\usage{
interval_index(..., start, end, default_query_bounds = "[)")
}
\arguments{
\item{...}{Elements to add.}

\item{start}{Start endpoints matching \code{...}.}

\item{end}{End endpoints matching \code{...}.}

\item{default_query_bounds}{Boundary convention used as the default for
query operations on this index: one of \code{"[)"}, \code{"[]"}, \code{"()"}, \code{"(]"}.
Per-query \verb{peek_*} / \verb{pop_*} calls may override via their own \code{bounds}
argument.}
}
\value{
An \code{interval_index}.
}
\description{
Convenience constructor from \code{...}, \code{start}, and \code{end}.
}
\details{
Empty construction is supported: \code{interval_index()} returns an empty index.

Output is ordered by interval \code{start}.
}
\examples{
ix <- interval_index("a", "b", "c", start = c(1, 2, 2), end = c(3, 2, 4))
ix

interval_index()
}
