[REBOL] Short of supply
From: patrick:philipot:laposte at: 6-Jul-2003 15:30
Hi List,
It seems to me that Rebol documentation is very short in list example.
The SUPPLY fonction in fact is giving me a headache.
For example, from the few examples I had found here and there,
I thought the SUPPLY function was called once for each element of the list.
This short piece of code proves me wrong.
mydata: ["Red" "Green" "blue"]
view center-face layout [
list 100x100 [
text 80
] supply [
print count ;<------------------------- printing occurs every time the mouse goes over
an element
face/text: either count > length? mydata [""][pick mydata count]
]
]
During my "research", I have found this exclamation from pekr
>> .... maybe you will not agree, but 'supply part of list style is a real stopper to
style usage,
>> and I have proof with three other ppl I get to some VID coding .... I wonder if there
is more intuitive way?
>> -pekr-
from http://www.escribe.com/internet/rebol/m30783.html
May be things have changed... Is there any piece of didactic documentation, some SUPPLY
tutorial or LIST for dummies out there?
Regards
Patrick