angerangel edited this page Jan 4, 2013 · 1 revision

USAGE

   HAS vars body

DESCRIPTION

A shortcut to define a function that has local variables but no arguments.

HAS is a function value.

ARGUMENTS

  • 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]
] ]
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.