[REBOL] Re: Shortcut word available?
From: chris-ross::gill::com at: 8-Jun-2007 22:09
Ah, but he was only asking for a shortcut for 'either, in which case
'any and 'all would be faster. And even if 'my-word is false (Max),
'any and 'all would work the same way as Robert's 'either.
>> either my-word [my-word][none]
** Script Error: my-word has no value
** Near: either my-word [my-word] [none]
>> any [my-word]
** Script Error: my-word has no value
** Near: any [my-word]
>> all [my-word]
** Script Error: my-word has no value
** Near: all [my-word]
>> my-word: false
== false
>> either my-word [my-word][none]
== none
>> any [my-word]
== none
>> all [my-word]
== none
On Jun 8, 2007, at 11:30 AM, Tim Johnson wrote: