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

[REBOL] Re: functional replace function?

From: g:santilli:tiscalinet:it at: 1-Nov-2002 12:07

Hi bryan, On Friday, November 1, 2002, 10:53:53 AM, you wrote: b> any suggested readings, links? What about something like: replace-many: func [ string block ] [ foreach [src rep] block [ replace/all string src rep ] string ]
>> replace-many "A word where some strings have to be replaced." ["word" "string" "strings" "words" "to be" "been"]
== "A string where some words have been replaced." Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r