cat

Concatenation function.

Syntax

cat(expr_1, expr_2, ...,expr_n

Argument

expr_1, expr_2, ...,expr_n
Two or more valid scalar, vector, or string expressions.

Example

Templex Expression Result
{cat(1, 2)} 1, 2
{cat(1, {2, 3, 4} )} 1, 2, 3, 4
{cat( {1, 2}, {3, 4} )} 1, 2, 3, 4
{cat(1, 2, 3, 4, 5)} 1, 2, 3, 4, 5
{cat("a", "bcd")} "a", "bcd"
{cat({"This","is"},

{"a","test"})}

"This","is","a","test

"

Curve Math Vectors Result
x = cat(c1.x, c2.x)

y = cat(c1.y, c2.y)

Comments

The cat function combines multiple expressions into one by appending expr_2 throughexpr_n to the end of expr_1. The result is a vector or string containing a number of elements equal to the total number of elements in the expressions.

Scalars and vectors can only be combined with other scalars and vectors. Only strings and string arrays can be combined with each other. The arguments must be either all scalars and vectors, or all strings and string arrays.