REBOL Programming/append

USAGE:Edit

APPEND series value /only 

DESCRIPTION:Edit

Appends a value to the tail of a series and returns the series head.

APPEND is a function value.

ARGUMENTSEdit

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

REFINEMENTSEdit

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

SOURCE CODEEdit

append: func [
    {Appends a value to the tail of 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 :value
    ] [
        insert tail series :value
    ]
]
Last modified on 27 October 2012, at 22:19