Community discussions

 
hackclub
newbie
Topic Author
Posts: 27
Joined: Thu Dec 12, 2013 7:28 am

How to Merge Two Arrays ?

Tue Oct 08, 2019 10:33 pm

Hello ,,,

:local MyArray1 {1;2;3;4;5};
:local MyArray2{1;2;3;6;7};

How to Merge value in the MyArray1 and MyArray2 ?
Result :
1
2
3
4
5
6
7

---------------------------------------------- Or -------------------------------------------------

:local MyArray1 {1=a;2=b;3=c;4=d;5=e};
:local MyArray2{1=a;2=b;3=c;4=g;5=p};

How to Merge the MyArray1 and MyArray2 ?
Result :

1=a
2=b
3=c
4=d
4=g
5=e
5=p

Thank You All ...

Who is online

Users browsing this forum: No registered users and 13 guests