Last modified on 13 November 2012, at 10:51

REBOL Programming/repend

USAGE:Edit

REPEND series value /only 

DESCRIPTION:Edit

Appends a reduced value to a series and returns the series head.

REPEND is a function value.

ARGUMENTSEdit

  • series -- (Type: series port)
  • value -- (Type: any)

REFINEMENTSEdit

  • /only -- Appends a block value as a block

SOURCE CODEEdit

repend: func [
    {Appends a reduced value to a series and returns the series head.} 
    series [series! port!] 
    value 
    /only "Appends a block value as a block"
][
    head either only [
        insert/only tail series reduce :value
    ] [
        insert tail series reduce :value
    ]
]