Rebol Programming/function
USAGE:
editFUNCTION spec vars body
DESCRIPTION:
editDefines a user function with local words.
FUNCTION is a function value.
ARGUMENTS
edit- spec -- Optional help info followed by arg words (and optional type and string) (Type: block)
- vars -- List of words that are local to the function (Type: block)
- body -- The body block of the function (Type: block)
SOURCE CODE
editfunction: func [ "Defines a user function with local words." spec [block!] {Optional help info followed by arg words (and optional type and string)} vars [block!] "List of words that are local to the function" body [block!] "The body block of the function" ][ make function! head insert insert tail copy spec /local vars body ]