Rebol Programming/to-closure

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

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
]