Flowery is an experimental package implementing generators in R. It also provides transducers for transforming iterators in a pipeline. See the iteration vignette for more information.
In the future the engine used to create generators will also be used for async/await functions and CSP coroutines.
Install the development version from github with:
# install.packages("devtools")
devtools::install_github("lionel-/flowery", build_vignettes = TRUE)