< Rebol Programming
USAGE:
FUNCTION spec vars body
DESCRIPTION:
Defines a user function with local words.
FUNCTION is a function value.
ARGUMENTS
- 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
function: 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 ]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.