lua-users home
lua-l archive

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


Typo: this should be T[T.n]:

function myinsert(T, ...)
  local n = select('#', ...)
  for i=1,n do
    T.n = T.n + 1
    T[T.n] = (select(i, ...))
  end
  return T
end