From 05fca5df14017cc770bc8d7c899cff50f1b2f81c Mon Sep 17 00:00:00 2001 From: Eli Barzilay Date: Thu, 1 Apr 2010 07:46:01 +0000 Subject: [PATCH] Documented () thing svn: r18706 --- collects/scribblings/reference/sequences.scrbl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/collects/scribblings/reference/sequences.scrbl b/collects/scribblings/reference/sequences.scrbl index d9a9f243c3..aac2bc8033 100644 --- a/collects/scribblings/reference/sequences.scrbl +++ b/collects/scribblings/reference/sequences.scrbl @@ -325,12 +325,15 @@ sequence; if no more elements are available, the @section{Iterator Generators} @defmodule[scheme/generator] -@defform[(generator body ...)]{ Creates a function that returns a -value, usually through @scheme[yield], each time it is invoked. When -the generator runs out of values to yield the last value it computed +@defform[(generator () body ...)]{ Creates a function that returns a +value through @scheme[yield], each time it is invoked. When +the generator runs out of values to yield, the last value it computed will be returned for future invocations of the generator. Generators can be safely nested. +Note: the first form must be @scheme[()], and in the future this will +hold argument names that are used in the initial generator call. + @examples[#:eval (generator-eval) (define g (generator (let loop ([x '(a b c)])