Skip to main content

Concatenate-Arrays

Command Description

Concatenate two arrays and return the result

Command Prototype

arrRet = concat(srcArray,distArray)

Parameter Description

ParameterRequiredTypeDefaultDescription
srcArrayTrueexpression[]The arrays to be grouped
distArrayTrueexpression[]The arrays to be grouped

return

arrRet,The variable used to save the output of the command.

Demo

TracePrint("----------------------Merge arrays----------------------- -") 
//-------------------------------------------------------------------------------
//[Remarks] Merge two arrays.
//Input parameter 1:
// srcArray--Array to be merged.
//Input parameter 2:
// distArray--Array to be merged.
//out parameters:
// arrRet--The variable to which the output of the function call is saved.
//
//Command prototype: arrRet=concat(srcArray,distArray)
//-------------------------------------------------------------------------------
arrRet=concat(["a", "b"],["c", "d"])
TracePrint(arrRet)