lua-users home
lua-l archive

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


--- In lua-l@yahoogroups.com, Asko Kauppi <Asko.Kauppi@f...> wrote:
> 
> I'd also like 'table.append()' for appending numerically indexed 
tables
> together and 'table.flatten()' for removing any subtables (placing 
their
> items in main level).
> 
> But -as someone pointed out- there's probably so much variation in 
needs
> that it's best to leave these for each developer's hands.

table.flatten() might cause problems with name collisions as some 
values inside 'deeper' tables might have the same keys etc. but isn't 
there an append function? What does that table concat do? If that's 
for generic(non vectorlike) tables then vector version(like iconcat) 
might make sense and I doubt it would be hard to implement it.

Dimitris

PS:thanks for the code