The Racket repository
Go to file
Eli Barzilay 18c8e41fac Make it possible for the last expression in the body of a generator to
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
2010-02-05 03:21:59 +00:00
collects Make it possible for the last expression in the body of a generator to 2010-02-05 03:21:59 +00:00
doc A bunch of additional typos 2010-02-05 03:21:52 +00:00
man/man1 2009 -> 2010 2009-12-22 05:52:15 +00:00
src A bunch of additional typos 2010-02-05 03:21:52 +00:00