lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Apr 1, 2014 at 10:46 AM, Eduardo Tongson <propolice@gmail.com> wrote:
>     local concat = table.concat
>     ...
>     concat(t)
>
> Does it exactly have the same effect?

Completely!  Functions are values, you can assign them to a variable.

It will be a little bit faster, although you'd only notice if using it
in a tight loop.