The concatenation operator is only defined for the String
type. A concatenation operation results in a string that is the concatenation of the two operands in order from left to right. As noted in the Conversions chapter, the operands will be implicitly converted to String
if they are of a type that has a conversion to String
. Also, there is a special case in that the null type Nothing
is treated in concatenation expressions as if it was an empty string literal ""
.
&
Expression