Skip to content
angerangel edited this page Mar 19, 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