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: [ω² apioexclamatohazards]
gollark: '11!¹!!one!¡¡!one1¹¹one1one¡¡one1one¹1!1¹¡oneone¡1one!¡one!¡one¡¡11¡¹¡¡one!one1!¡¡1one¹oneone1oneone¡¡¹one¹¡one¹¡11¹!1!11¹!one11one1one!¹!1!¹oneone¡1¹¹
gollark: How are you converting messages to sound?
gollark: > that long message by gollark just made a square wave sound sfxIn what way?
gollark: Ah, jabÜ.
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.