[REBOL] Re: A surprise from REPEAT
From: g::santilli::tiscalinet::it at: 2-Aug-2001 19:02
On 02-Ago-01, you wrote:
LP> I don't recall seeing this documented anywhere, so I thought
LP> I would mention it here. It sure surprised me!!
>> help repeat
REPEAT 'word value body
Evaluates a block a number of times or over a series. <-------------
REPEAT is a native value.
word -- Word to set each time (Type: word)
value -- Maximum number or series to traverse (Type: integer series)
body -- Block to evaluate each time (Type: block)
(If you can call this documentation... :)
The difference between REPEAT and FOREACH is that the latter
allows using multiple words.
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/