Concatenation
Concatenation is the operation of joining two or more sequences end-to-end to form a new sequence. In computing, strings are the most common sequences concatenated, but concatenation also applies to lists, arrays, and other sequence types. In many programming languages, concatenation is exposed through operators (such as +) or through dedicated functions (such as concat or join). The result preserves the order of the operands, and the length of the result is the sum of the lengths of the operands.
Mathematically, concatenation is a binary operation on sequences. For strings over an alphabet, it is associative:
In practical computing, the way concatenation is implemented affects performance. When strings are immutable, naive repeated
Applications include constructing text from tokens, assembling data records, or combining identifiers. In databases, concatenation is