yield function vs yield result that reference function

Note we yield the result reference to JCcall()

Note that we now move yield to JCcall instead.

Another example is that we return another generator (* function) inside of our original generator function.
The yield* expression ( as opposed to the yield of a normal function above ) is used to delegate to another generator or iterable object.

The key point here is that we must put yield* in front like this:

Now, let’s run our generator.