Description Usage Arguments Details Examples
Wrapping is the standard technique for spawning new generators. By default
all generators are wrapped in the identity function. When applying
wrap, we take the value currently returned by the generator and
use it as the argument in another function. To be safe, the function spawns
a new generator. Updating the second generator does not affect the first.
1 | wrap(.generator, .wrap)
|
.generator |
A function with the class |
.wrap |
A function that takes |
Wrapping is also the engine for a variety of other standard modifications to generators, including filtering.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.