Array concatenation: Difference between revisions

Content added Content deleted
(Add LIL)
Line 1,926: Line 1,926:


=={{header|LIL}}==
=={{header|LIL}}==
LIL uses lists instead of arrays. The builtin '''append''' command could be used as '''append a $b''', but that would add the entire list in variable '''b''' as one item of variable '''a'''. The '''foreach''' flattens the items of b for appended to a. The '''concat'' builtin would end up smushing together the last item of a with the first item of b.
LIL uses lists instead of arrays. The builtin '''append''' command could be used as '''append a $b''', but that would add the entire list in variable '''b''' as one item of variable '''a'''. The ''foreach'' flattens the items of b for appended to a. The '''concat''' builtin would end up smushing together the last item of a with the first item of b.

<lang tcl>##
<lang tcl>##
Array concatenation in LIL
Array concatenation in LIL