[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]>
nd.net.au> cc:
Sent by: Subject: [REBOL] Re: replace
rebol-bounce@
rebol.com
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.