REBOL Programming/to-closure

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

USAGE:[edit]

TO-CLOSURE value 

DESCRIPTION:[edit]

Converts to closure! value.

TO-CLOSURE is a function value.

ARGUMENTS[edit]

  • value -- (Type: block)

SOURCE CODE[edit]

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