forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Apply
angerangel edited this page Dec 14, 2012
·
1 revision
APPLY func block /only
Apply a function to a reduced block of arguments. APPLY is a native value.
- func -- Function value to apply (any-function!)
- block -- Block of args, reduced first (unless /only) (block!)
- /only -- Use arg values as-is, do not reduce the block
apply: make native! [ [
"Apply a function to a reduced block of arguments."
func [any-function!] "Function value to apply"
block [block!] "Block of args, reduced first (unless /only)"
/only "Use arg values as-is, do not reduce the block"
] ]