BigBuffalo
(BigBuffalo)
September 24, 2021, 3:36am
1
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”, …}
Yoichi
(Yoichi)
September 24, 2021, 3:45am
2
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
BigBuffalo
(BigBuffalo)
September 24, 2021, 3:58am
3
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.
aanandsanraj
(Anandraj Rajendran)
September 24, 2021, 6:53am
5
Hi @BigBuffalo
Try like this
variable1.Concat(variable2).ToArray
1 Like