[REBOL] Selective to-(data-type) Howto?
From: tim:johnsons-web at: 13-Jul-2001 12:04
I can do this:
types: [to-integer to-string] ; block of data - conversion functions
== [to-integer to-string]
>> tt: get pick types 1
>> test: tt "4"
== 4
>> tt: get pick types 2
>> test: tt 4
== "4"
; this is great? It allows me to do data-conversion selectively based on indexes
; parsed from a config file.
To expand on this: Is it possible to extract a block of value-conversion functions
directly from rebol?
Thanks
Tim