I have these variables:
x = 1
y = [2, 3, 4]
z = 5
I want to add them all to a new array (something like this):
a = [x, y, z]
Now a
is [1, [2, 3, 4], 5]
However, I want a
to be [1, 2, 3, 4, 5
]
What's the most concise way to accomplish that?