Jump to content

Rebol Programming/reduce

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
REDUCE value /only words 

DESCRIPTION:

[edit | edit source]

Evaluates an expression or block expressions and returns the result.

REDUCE is a native value.

ARGUMENTS

[edit | edit source]
  • value -- (Type: any)

REFINEMENTS

[edit | edit source]
  • /only -- Only evaluate words and paths, not functions
    • words -- Optional words that are not evaluated (keywords) (Type: block none)

SOURCE CODE

[edit | edit source]
reduce: native[
    {Evaluates an expression or block expressions and returns the result.} 
    value 
    /only "Only evaluate words and paths, not functions" 
    words [block! none!] "Optional words that are not evaluated (keywords)"
]