forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
angerangel edited this page Mar 19, 2013
·
1 revision
HAS vars body
A shortcut to define a function that has local variables but no arguments.
HAS is a function value.
- vars -- List of words that are local to the function (block!)
- body -- The body block of the function (block!)
#SOURCE
has: make function! [ [
{A shortcut to define a function that has local variables but no arguments.}
vars [block!] "List of words that are local to the function"
body [block!] "The body block of the function"
][
make function! reduce [head insert copy/deep vars /local copy/deep body]
] ]