[REBOL] Re: Is there a REBOL construct similar to the "map" word as used in Logo
From: greggirwin:mindspring at: 29-Jun-2002 11:21
Hi Gerard,
<< While looking at how this version was implemented, one question hurts my
head that you may be able to answer while I am searching myself for more
information about it. Where does the "el" word used in the repeat construct
come from ?...>>
It's a word that lives in the context of the REPEAT block (bind gurus please
correct my explanation!). I.e. it is a word that you don't have to declare
and won't have a value outside the iteration construct.
>> b: [a b c]
== [a b c]
>> repeat i length? b [print i]
1
2
3
>> i
** Script Error: i has no value
** Near: i
The same thing works for other iteration constructs as well. I think it's a
very nice feature.
--Gregg