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

[REBOL] Re: Iterators & Functionids

From: g:santilli:tiscalinet:it at: 28-Aug-2002 2:13

Hi Robert, On Tuesday, August 27, 2002, 8:20:56 PM, you wrote: RMM> forall list [ RMM> object: first list RMM> if (do bind copy predicate 'list) [do bind copy action RMM> 'list] RMM> ] This way you are copying and rebinding the blocks at each cycle. Using functions is probably the best way, but if you prefer blocks you can: predicate: bind/copy predicate 'list action: bind/copy action 'list forall list [ object: first list if do predicate [do action] ] Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: