Hello Miquel!

On 13-Ott-01, you wrote:

 MG> row is considered a word, not a block.
 MG> How can I use foreach with a block ?

>> data: [ 1 AAA BBB 3 0
[    2 MMM XXX 1 1
[    3 DDD VVV 2 1 ]
== [1 AAA BBB 3 0 
    2 MMM XXX 1 1 
    3 DDD VVV 2 1]
>> row: [ a b c d e ]
== [a b c d e]
>> foreach :row data [ print bind row 'a ]             
1 AAA BBB 3 0
2 MMM XXX 1 1
3 DDD VVV 2 1

or, faster:

>> foreach :row data compose/deep [ print [(row)] ]
1 AAA BBB 3 0
2 MMM XXX 1 1
3 DDD VVV 2 1

Regards,
    Gabriele.
-- 
Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to