% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/30-api-flexseq-iter.R
\name{loop}
\alias{loop}
\title{Iterate over an iterator (re-exported from coro)}
\usage{
loop(loop)
}
\arguments{
\item{loop}{A \code{for} loop expression.}
}
\value{
\code{NULL}, invisibly. Called for side effects.
}
\description{
Re-exported \code{\link[coro:collect]{coro::loop()}}. Enables \code{for}-loop-style iteration over
\code{immutables} structures without needing to load \code{coro} separately.
}
\examples{
s <- flexseq(1, 2, 3)
loop(for (x in s) print(x))
}
\seealso{
\code{\link[coro:collect]{coro::loop()}} for full documentation.
}
