How to quick merge two array

I have two big string array and want to joint one by each item
I did it by loop and join each item but take a long time
Is there any method faster than that?

Example:
List1 ={“A”, “B”, “C”, …}
List2 ={“1”, “2”, “3”, …}
join to List3=List1 ={“A1”, “B2”, “C3”, …}

Hi,

If number of the array items is same b/w 2 arrays, the following will work.

List1.Zip(List2, Function(x,y) x+y).ToArray

Regards,

2 Likes

Wonderful ! it done in a second
Thanks you very much!

1 Like

You can also do it with list1array.union(list2array).toarray. This ll take the unique values from the two arrays though. Cheers.

Hi @BigBuffalo

Try like this

variable1.Concat(variable2).ToArray

1 Like