6.38.15 Concaténation de 2 listes ou d’une liste et d’un élément: concat augment
concat (ou augment)
concaténe deux listes, ou concaténe une liste et un élément.
On tape :
concat([3,4,2],[1,2,4])
Ou on tape :
augment([3,4,2],[1,2,4])
On obtient :
[3,4,2,1,2,4]
On tape :
concat([3,4,2],5)
Ou on tape :
augment([3,4,2],5)
On obtient :
[3,4,2,5]
Attention
concat([[3,4,2]],[[1,2,4]])
On obtient :
[[3,4,2,1,2,4]]