Skip to contents

Re-exported coro::loop(). Enables for-loop-style iteration over immutables structures without needing to load coro separately.

Usage

loop(loop)

Arguments

loop

A for loop expression.

Value

NULL, invisibly. Called for side effects.

See also

coro::loop() for full documentation.

Examples

s <- flexseq(1, 2, 3)
loop(for (x in s) print(x))
#> [1] 1
#> [1] 2
#> [1] 3