concat

Synopsis

@ concat(@a, @b, [...])

Concatenates the specified arrays into one.

Parameters

@a, @b - arrays to join together

... - any number of arguments may be specified. non-array arguments are simply added to the resulting array.

Returns

A new array

Side Effects / Notes

Examples

@a = @(1, 2, 3); @b = @("a", "b", "c"); @c = concat(@a, '|', @b, @b); println(@c);

@(1, 2, 3, '|', 'a', 'b', 'c', 'a', 'b', 'c')

See Also