[REBOL] Re: I hate computers!
From: joel:neely:fedex at: 4-Jan-2003 14:07
Hi, Doc,
Tradeoffs about... ;-)
[dockimbel--free--fr] wrote:
> Here's an alternative approach, if you want to avoid the
> 'reduce call :
>
> valid-type?: func [param [any-type!] types [series!]][
> to logic! find types type?/word param
> ]
>
OTOH, staying with the REDUCE allows one to use VALID-TYPE? with
exemplars as well, since the expressions would evaluate to types
in something like
valid-type? foo [type? something type? somethingelse]
Good thing the cat has nine lives, as he can be skinned so many
different ways!
-jn-