REBOL Programming/compose

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

USAGE:[edit]

COMPOSE value /deep /only 

DESCRIPTION:[edit]

Evaluates a block of expressions, only evaluating parens, and returns a block.

COMPOSE is a native value.

ARGUMENTS[edit]

  • value -- Block to compose (Type: any)

REFINEMENTS[edit]

  • /deep -- Compose nested blocks
  • /only -- Inserts a block value as a block

SOURCE CODE[edit]

compose: native[
    {Evaluates a block of expressions, only evaluating parens, and returns a block.} 
    value "Block to compose" 
    /deep "Compose nested blocks" 
    /only "Inserts a block value as a block"
]

{{BookCat}}