Pass a function to a generator
the generator can receive a function as a value
pass a function to the iterator, which calls it
nesting yielded function calls
Required Knowledge
- `let` declaration (Block scope)
- creation (Generator)
- iterator (Generator)
- yield expressions (Generator)
- send value to a generator (Generator)
Related Katas
Generator
- creation
- iterator
- yield expressions
- send value to a generator
- send function to a generator
return
inside a generator function
Difficulty Level
EXPERT
First Published
29 June 2015
Stats
3 tests to solve