Concatenation

From ComputerCraft
Jump to: navigation, search

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!.