Use

angerangel edited this page Jan 7, 2013 · 1 revision
Clone this wiki locally

USAGE

   USE vars body

DESCRIPTION

Defines words local to a block.

USE is a function value.

ARGUMENTS

  • vars -- Local word(s) to the block (block! word!)
  • body -- Block to evaluate (block!)

#SOURCE

use: make function! [  [
    "Defines words local to a block."
    vars [block! word!] "Local word(s) to the block"
    body [block!] "Block to evaluate"
][
    apply make closure! reduce [to block! vars copy/deep body] []
] ]