REBOL Programming/reduce

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

REDUCE value /only words 

DESCRIPTION:[edit]

Evaluates an expression or block expressions and returns the result.

REDUCE is a native value.

ARGUMENTS[edit]

  • value -- (Type: any)

REFINEMENTS[edit]

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

SOURCE CODE[edit]

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