forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Closure
angerangel edited this page Mar 15, 2013
·
1 revision
CLOSURE spec body
Defines a closure function.
CLOSURE is a function value.
- spec -- Help string (opt) followed by arg words (and opt type and string) (block!)
- body -- The body block of the function (block!)
#SOURCE
closure: make function! [ [
"Defines a closure function."
spec [block!] {Help string (opt) followed by arg words (and opt type and string)}
body [block!] "The body block of the function"
][
make closure! copy/deep reduce [spec body]
] ]