Previous Up Next

6.3.12  Concatenating two lists or a list and an element

The concat or augment command combines to lists or adds an element to a list.

Examples

concat([3,4,2],[1,2,4])

or:

augment([3,4,2],[1,2,4])
     

3,4,2,1,2,4
          
concat([3,4,2],5)

or:

augment([3,4,2],5)
     

3,4,2,5
          
concat(2,[5,4,3])

or:

augment(2,[5,4,3])
     

2,5,4,3
          
concat([[3,4,2]],[[1,2,4]])

or:

augment([[3,4,2]],[[1,2,4]])
     

342124

          

Previous Up Next