Jump to content

Rebol Programming/to

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
TO type spec 

DESCRIPTION:

[edit | edit source]

Constructs and returns a new value after conversion.

TO is an action value.

ARGUMENTS

[edit | edit source]
  • type -- The datatype or example value. (Type: any-type)
  • spec -- The attributes of the new value. (Type: any-type)

SOURCE CODE

[edit | edit source]
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."
]