Jump to content

Rebol Programming/has

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
HAS locals body 

DESCRIPTION:

[edit | edit source]

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

HAS is a function value.

ARGUMENTS

[edit | edit source]
  • locals -- (Type: block)
  • body -- (Type: block)

SOURCE CODE

[edit | edit source]
has: func [
    {A shortcut to define a function that has local variables but no arguments.} 
    locals [block!] 
    body [block!]
][function [] locals body]