syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me

Question:
In Lua how to concatenate?

Let Lua concatenate the strings:
dan@hp ~/ks/b/lua $
dan@hp ~/ks/b/lua $ lua
Lua 5.3.0  Copyright (C) 1994-2015 Lua.org, PUC-Rio
>
> 'hello '..'world'
hello world
>
>
dan@hp ~/ks/b/lua $
dan@hp ~/ks/b/lua $
I would have guessed that the concatenation operator is the plus-sign.

But, it is two dots.

That would be hard to guess.

syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me