I am having issues appending data to the end of an array. I have been using the concatenate operator (||), but then the result is a matrix which messes up the calculations I am working on. Is there an easy way to do this?
Example:
// Sample data set
data1 = [1, 2, 3, 4, 5];
data2 = [6, 7, 8, 9, 10];
result = data1 || data2;
/* output of result:
[1 6,
2 7,
3 8,
4 9,
5 10] */
// desired result: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]