How to add to arrays into new array!

Hi Community

I’m having two Arrays
Add 1 array with 2 array
and output should be added to new array.

@Venkata_Ratnam

Hi

Use this expression

array1.zip(array2,function(x,y) x+y ).toarray

Hope this helps

@Venkata_Ratnam

Please try this

Arr1.Concat(Arr2).toArray

image

cheers

Hi @Venkata_Ratnam

Use the below expression

combinedArray = array1.Concat(array2).ToArray()

Hope it helps!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.