Concatenation

Concatenation is a binary operation in which two strings are joined together, creating one larger string, one following the other. In Lua, the concatenation operator is written ...

Properties

Concatenation is associative, meaning that , where is the concatenation operator. However, it is not commutative, meaning that .

Example

print("hello" .. " world" .. "!")

This will output hello world!.

This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.