I'm trying to simply combine two arrays, and the Push method makes it seem like this should be pretty easy. I know I could loop through the second array and simply assign each key:value pair to the first array, but I'd like to understand how to use the Push method better.
Why does this not work?
Code: Select all
array1 := { a:"red", b:"blue" }
array2 := {c:"yellow", d:"green"}
array1.push(array2)