Skip to content
angerangel edited this page Dec 14, 2012 · 1 revision

Table of Contents

USAGE

  APPLY func block /only

DESCRIPTION

Apply a function to a reduced block of arguments. APPLY is a native value.

ARGUMENTS

  • func -- Function value to apply (any-function!)
  • block -- Block of args, reduced first (unless /only) (block!)

REFINEMENTS

  • /only -- Use arg values as-is, do not reduce the block

SOURCE

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"
] ] 

Clone this wiki locally