REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 17-Aug-2010 Edit History  

REBOL 3 Functions: source

source  word

Prints the source code for a word.


word [word! path!]

See also:

what   help   ?   ??   trace  


The source function displays the source code for REBOL defined functions.

For example, type:

source join

The source to the join function will be returned:

join: make function! [[
    "Concatenates values."
    value "Base value"
    rest "Value or block of values"
    value: either series? :value [copy value] [form :value]
    repend value :rest

REBOL defined functions include the mezzanine functions (built-in interpreted functions) and user defined functions. Native functions have no source to display.

  TOC < Back Next > - WIP Wiki Feedback Admin