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

[REBOL] Re: replace

From: ryan:christiansen:intellisol at: 26-Jun-2001 15:32

But... shouldn't replace return an error, anyway, if you are asking it to replace something that doesn't exist? "Anton" <[arolls--bigpo] To: <[rebol-list--rebol--com]>> cc: Sent by: Subject: [REBOL] Re: replace rebol-bounce@ 06/26/2001 02:56 PM Please respond to rebol-list Nah... Just do this: a: "foobar" c: "fabulous" either find a c [replace a c c][ ;it wasn't found ] or even (if a is long) either t: find a c [replace t c c][] Just think, you would have to couch each 'replace with an either error? try [][][] structure. How annoying. Anton.