[REBOL] Re: index? none
From: g:santilli:tiscalinet:it at: 28-Nov-2002 19:47
Hi Ted,
On Thursday, November 28, 2002, 4:45:34 PM, you wrote:
TL> How do I best avoid the error possible in the following:
TL> index? find block x
TL> When x is not in block it returns none and index? returns an error.
It depends on what you want it to return in that case... anyway,
you can use:
index? any [find block x #]
(I think I saw the issue trick from Jeff the first time.)
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r