Rebol Programming/to

USAGE:Edit

TO type spec 

DESCRIPTION:Edit

Constructs and returns a new value after conversion.

TO is an action value.

ARGUMENTSEdit

  • type -- The datatype or example value. (Type: any-type)
  • spec -- The attributes of the new value. (Type: any-type)

SOURCE CODEEdit

to: native[
    {Constructs and returns a new value after conversion.} 
    type [any-type!] "The datatype or example value." 
    spec [any-type!] "The attributes of the new value."
]