Rebol Programming/to-function

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

USAGE:[edit | edit source]

TO-FUNCTION value 

DESCRIPTION:[edit | edit source]

Converts to function! value.

TO-FUNCTION is a function value.

ARGUMENTS[edit | edit source]

  • value -- (Type: block)

SOURCE CODE[edit | edit source]

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