Rebol Programming/join

From Wikibooks, open books for an open world
Jump to navigation Jump to search

USAGE:[edit | edit source]

JOIN value rest 

DESCRIPTION:[edit | edit source]

Concatenates values.

JOIN is a function value.

ARGUMENTS:[edit | edit source]

  • value -- Base value (Type: any)
  • rest -- Value or block of values (Type: any)

SOURCE CODE[edit | edit source]

join: func [
    "Concatenates values." 
    value "Base value" 
    rest "Value or block of values"
][
    value: either series? :value [copy value] [form :value] 
    repend value :rest
]