Generators in REPL can't be specified using function *gen() {}
- Version: v7.2.0
- Platform: Linux gwg-nb01 4.8.0-1-amd64 deps: update openssl to 1.0.1j #1 SMP Debian 4.8.7-1 (2016-11-13) x86_64 GNU/Linux
As you can see in the attached image, generators can only be specified with the star placed right next to the function keyword, as if it is placed in another place (right before the function name for example), it enters in multi-line edition mode.
