Task

Show how to concatenate two arrays in your language.



If this is as simple as array1 + array2, so be it.




 
#define array_concat(T,a1,a2,returned) \
    T[a1.length()+a2.length()] returned; \
    { \
    for(int i = 0; i < a1.length(); i++){ \
        returned[i] = a1[i]; \
    } \
    for(int i = 0; i < a2.length(); i++){ \
        returned[i+a1.length()] = a2[i]; \
    } \
}
 