[REBOL] Re: Selective to-(data-type) Howto?
From: jeff::rebol::net at: 13-Jul-2001 15:10
Howdy, Tim:
> I can do this:
>
> types: [to-integer to-string] ; block of data - conversion
> functions
>
>>> tt: get pick types 1
>>> test: tt "4"
> == 4
>
> Is it possible to
> extract a block of value-conversion functions directly
> from rebol?
Not sure of your question, but wanted to point out that you
can also do:
some-types: [1 [email--foo] "string" #hash u:/ []]
to some-types/1 "1"
to some-types/2 "larry"
etc...
You can use TO and a representive sampling of what you want to
convert something to.
-jeff