Rejoin

angerangel edited this page Jan 7, 2013 · 1 revision
Clone this wiki locally

USAGE

   REJOIN block

DESCRIPTION

Reduces and joins a block of values.

REJOIN is a function value.

ARGUMENTS

  • block -- Values to reduce and join (block!)

#SOURCE

rejoin: make function! [  [
    "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
] ]