Rebol Programming/rejoin

USAGE:

edit
REJOIN block 

DESCRIPTION:

edit

Reduces and joins a block of values.

REJOIN is a function value.

ARGUMENTS

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

SOURCE CODE

edit
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
]