Jump to content

Rebol Programming/to-closure

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
TO-CLOSURE value 

DESCRIPTION:

[edit | edit source]

Converts to closure! value.

TO-CLOSURE is a function value.

ARGUMENTS

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

SOURCE CODE

[edit | edit source]
to-closure: func ["Converts to closure! value." value [block!]][
    closure pick value 1 pick value 2
]