The Racket repository
![]() return any number of values. They will be collected and used as the repeat-forever result of calling the generator again. Note: there's an exception for using no values -- instead of returning no values forever, use void, since no values can be more surprising, and it can happen when someone uses something like (generator (yield 1) (yield 2) (yield 3)) since the result of `yield' is (values). (This will change in a following commit, but even then it will be popular since people will usually invoke the generator with no arguments which leads to the zero values. Could be solved if you use (g (void)) -- but that's awkward, I think.) svn: r17978 |
||
---|---|---|
collects | ||
doc | ||
man/man1 | ||
src |