Problem with arrays

Hi @Sarge,

I was trying to add two arrays together without using 2 loops and still keep the original array intact(copy).

I found out from one of your earlier posts that this was possible with concat():

Still, I have not found out how to do this with only blocks/without grey blocks…

Here, illustrated with the functions AddList_loop(), AddList_no_lopp() and AddList_reference(), which are 2 loops, concat and same as yours above, respectively:

As you can see, in the last one - AddList_reference() and the same as yours above -, result seems only to be a reference to array1 via the parameter list1, and the original array1 is overwritten.

2 Likes