Description Usage Arguments Details Examples
A generator is a function that contains a mutable state. Calls to the function change the state and return a value in a series.
1 |
.start |
A vector that describes the initial state of the generator |
.update |
A function or formula controlling how the state changes over time |
.yield |
A function or formula controlling how a series is returned from the state |
Syntax sugar is borrowed from
purrr
, allowing for
the creation of anonymous functions using formulas. Unlike purrr
,
this package uses state
as the key pronoun for all functions.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.