lua-users home
lua-l archive

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


On 25/02/2011 21.35, Javier Guerra Giraldez wrote:
if you return at most one value, just wrap your function call in parenthesis.

table.insert (t,(f()))

Or, more explicitly, table.insert(t, f() or nil)

--
  Enrico