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!
.
gollark: But you want lots of things.
gollark: Then you want food, I guess.
gollark: If GTech™ deployed viral photosynthetic genes™, people would stop wanting it.
gollark: It's valuable because people want it and will exchange things for it, that's all.
gollark: Well, it doesn't.
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.