# join -- join lists and sequences

## Synopsis

• Usage:
join(A, B, ...)
• Inputs:
• A,
• B,
• Outputs:
• Z,

## Description

join(A, B, ...) joins the elements of the lists or sequences A, B, ... into a single list or sequence. The inputs may belong to different classes; the class of the result will match the class of the first argument passed to join.

 i1 : join( {1,2,3}, (4,5,6), (7,8,9) ) o1 = {1, 2, 3, 4, 5, 6, 7, 8, 9} o1 : List i2 : join( (1,2,3), {4,5,6}, {7}, (8,9,10) ) o2 = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) o2 : Sequence

The operator | is a convenient shorthand for joining two inputs of the same class.

 i3 : {1,2,3} | {4,5,6} o3 = {1, 2, 3, 4, 5, 6} o3 : List i4 : (1,2,3) | (4,5,6) o4 = (1, 2, 3, 4, 5, 6) o4 : Sequence