lua-users home
lua-l archive

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


On Wed, Nov 17, 2010 at 4:02 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
> I'd trade these two features for table concatenation operator. :-)

Ah, but it's easy enough to do in pure Lua, providing you have a
special table constructor function T and use it liberally. Make the
metatable.__index = table and metatable.__concat = table.concat, which
is a fairly straightforward function for _lists_.

For the hash part, I'd guess it would work like union. But in the case
of duplicate keys, which table's value wins?

steve d.