< Rebol Programming

USAGE:

APPEND series value /only 

DESCRIPTION:

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

APPEND is a function value.

ARGUMENTS

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

REFINEMENTS

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

SOURCE CODE

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
    ]
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.