Skip to content
angerangel edited this page Mar 19, 2013 · 1 revision

USAGE

   REDUCE value /no-set /only words /into out

DESCRIPTION

Evaluates expressions and returns multiple results.

REDUCE is a native value.

ARGUMENTS

  • value

REFINEMENTS

  • /no-set -- Keep set-words as-is. Do not set them.
  • /only -- Only evaluate words and paths, not functions
    • words -- Optional words that are not evaluated (keywords) (block! none!)
  • /into -- Output results into a block with no intermediate storage
    • out (any-block!)

#SOURCE

reduce: make native! [  [
    {Evaluates expressions and returns multiple results.}
    value
    /no-set "Keep set-words as-is. Do not set them."
    /only "Only evaluate words and paths, not functions"
    words [block! none!] "Optional words that are not evaluated (keywords)"
    /into {Output results into a block with no intermediate storage}
    out [any-block!]
] ]
Clone this wiki locally