combine

HC Data Structure Primitives Constructors combine
toList genSym

combine thing1 thing2
(combine thing1 thing2...)


if thing2 is a word, outputs Word thing1 thing2. If thing2 is a list, outputs fPut thing1 thing2.

If the things are of the same array type, a new array of the same type but with all elements of the input arrays is the output.

Examples:

show combine "ha "llo		;hallo
show combine "Hallo [World]		;[hallo World]
show combine {1 2 3}{4 5 6}		;{1 2 3 4 5 6}
show (combine {1 2 3}{4 5 6}{7 8}{9})		;{1 2 3 4 5 6 7 8 9}
show combine FloatArray {1 2 3} FloatArray {4 5 6}		;{1 2 3 4 5 6}
show combine IntArray {1 2 3} IntArray {4 5 6}		;{1 2 3 4 5 6}
show combine Int16Array {1 2 3} Int16Array {4 5 6}		;{1 2 3 4 5 6}

References:

toList genSym