forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Func
angerangel edited this page Mar 19, 2013
·
1 revision
FUNC spec body
Defines a user function with given spec and body.
FUNC 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
func: make function! [ [
"Defines a user function with given spec and body."
spec [block!] {Help string (opt) followed by arg words (and opt type and string)}
body [block!] "The body block of the function"
][
make function! copy/deep reduce [spec body]
] ]