Get The Generator

no-email (Damien Seguy), Damien Seguy
Thu, 18 Jan 2024 00:00:00 +0000

It is possible to catch a generator when it is called, by putting it in a variable. Once the generator has been used, it is possible to call a method such as ``getReturn`` on it.
This works with ``...`` and ``foreach``.