Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Join

Function: join (<l>, <m>) Creates a new list containing the elements of lists <l> and <m>, interspersed. The result has elements `[<l>, <m>, <l>, <m>, ...]`. The lists <l> and <m> may contain any type of elements. If the lists are different lengths, `join` ignores elements of the longer list.

Maxima complains if <l> or <m> is not a list.

Examples:

```          (%i1) L1: [a, sin(b), c!, d - 1];
(%o1)                [a, sin(b), c!, d - 1]
(%i2) join (L1, [1, 2, 3, 4]);
(%o2)          [a, 1, sin(b), 2, c!, 3, d - 1, 4]
(%i3) join (L1, [aa, bb, cc, dd, ee, ff]);
(%o3)        [a, aa, sin(b), bb, c!, cc, d - 1, dd]```

There are also some inexact matches for `join`. Try `?? join` to see them.

```(%o1)                                true
(%i2) ```

### Related Examples

##### join-sin

l1: [a, sin(b), c!, d...

join (l1, [1, 2, 3, ...

join (l1, [aa, bb, c...

Calculate

join;

Calculate

##### join-makelist-plot2d a:2;

b:3;

n:200;

Calculate

##### join-sin

L1: [a, sin(b), c!, d...

join (L1, [1, 2, 3, ...

join (L1, [aa, bb, c...

Calculate

##### join-sin

l1: [a, sin(b), c!, d...

join (l1, [1, 2, 3, ...

join (l1, [aa, bb, c...

Calculate

##### join

join([1,2],[3,4]);

Calculate

a:[1,2,3];

b:[4,5,6];

join(a,b);

Calculate

join;

Calculate

##### join-makelist-plot2d a:2;

b:3;

n:200;

Calculate

##### join-sin

l1: [a, sin(b), c!, d...

join (l1, [1, 2, 3, ...

join (l1, [aa, bb, c...

Calculate 