Last modified on 13 November 2012, at 10:51

REBOL Programming/rejoin

USAGE:Edit

REJOIN block 

DESCRIPTION:Edit

Reduces and joins a block of values.

REJOIN is a function value.

ARGUMENTSEdit

  • block -- Values to reduce and join (Type: block)

SOURCE CODEEdit

rejoin: func [
    "Reduces and joins a block of values." 
    block [block!] "Values to reduce and join"
][
    if empty? block: reduce block [return block] 
    append either series? first block [copy first block] [
        form first block
    ] next block
]