< Rebol Programming

USAGE:

?? 'name 

DESCRIPTION:

Prints a variable name followed by its molded value. (for debugging)

?? is a function value.

ARGUMENTS

  • name -- (Type: any)

SOURCE CODE

??: func [
    {Prints a variable name followed by its molded value. (for debugging)} 
    'name
][
    print either word? :name [head insert tail form name reduce [": " mold name: get name]] [mold :name] 
    :name
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.