lua-users home
lua-l archive

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


2011/6/30 Pierre-Yves Gérardy <pygy79@gmail.com>:
> table.concat{tostring(objects,...)}

Convenient, yes, but why just tostring? A useful idiom would be this:

table.concat(mapvar(tostring,...))

where  res1,... = mapvar(fun,val1,...)

Easy to do efficiently in C (using Lua requires packing and unpacking)

(My memory fails me, but there is an extension that allows this kind of thing)

steve d.