Certainly no. I just want to know whether there are more convenient (built-in) functions like
push!
and append!
.
Anyway, I have learned some advanced techniques in all these answers. Thanks.
For now, I think the for loop is the best solution: intuitive and fast. (Also, no need to put the loop in one line just to make it look shorter )