REBOL Programming/join

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

JOIN value rest 

DESCRIPTION:[edit]

Concatenates values.

JOIN is a function value.

ARGUMENTS:[edit]

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

SOURCE CODE[edit]

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