Rebol Programming/??

USAGE:

edit
?? 'name 

DESCRIPTION:

edit

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

?? is a function value.

ARGUMENTS

edit
  • name -- (Type: any)

SOURCE CODE

edit
??: 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
]