Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Selective to-(data-type) Howto?|more

From: tim::johnsons-web::com at: 13-Jul-2001 15:19

Thanks Jeff: Sorry to not explain so well...... let me try again: 1)the rebol word 'what prints a list of globally-defined functions 2)It occurs to me that if I can collect that list into a 'block, I can parse out all of the functions beginning with {to-}. How may I do that? thnx tim On Fri, Jul 13, 2001 at 03:10:08PM -0700, Jeff Kreis wrote:
> 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 > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com