You have two arrays that you want to merge into one single array, but don't want to loop through one of the arrays and append each element to the second array for performance reasons.
Because Coldfusion is built on top of java we can take advantage of some of the java methods. One of these is addAll(), which merges two arrays together.
<!--- create two arrays for demonstrate with ---> <cfset myArrayA = ['one','two','three']> <cfset myArrayB = ['four','five','six']> <!--- Add all the elements in Array B to Array A ---> <cfset myArrayA.addAll( myArrayB )> <!--- Display the result ---> <cfdump var="#myArrayA#">
+