Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: 'get'ing a 'word from a block

From: al:bri:xtra at: 1-Jan-2003 20:00

Tim wrote:
> >> test: func[row[block!]][?? row ?? a]
I believe that 'a in the function body isn't bound to the contents of the block. This method seems to work OK for me:
>> blk: [1 2 3 4 5 6 7 8 9]
== [1 2 3 4 5 6 7 8 9]
>> d: [a b c]
== [a b c]
>> map blk func d [probe a probe b probe c]
1 2 3 4 5 6 7 8 9 == [3 6 9] And it seems easier to understand. Andrew Martin ICQ: 26227169 http://valley.150m.com/