I use Lua for some of my applications. I am looking for a central repository of Lua idioms because I don't want to write C in Lua.
A few examples that I came across are as follows:
x = x or v
This sets the default value for x, if not already set.
Another is
x, y = y, x
to exchange two variables.
source share