skip: Skip ahead in a generator

Description Usage Arguments Examples

View source: R/skip.R

Description

Skip ahead in a generator

Usage

1
skip(.generator, .n)

Arguments

.generator

A function with the class generator

.n

The number to steps to move forward

Examples

1
2
3
counter <- generator(0, ~ state + 1)
skip(counter, 5)
counter()

michaelquinn32/generators documentation built on May 22, 2019, 9:52 p.m.