lua-users home
lua-l archive

Re: [propsal] improve to table.concat?

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


于2011年10月11日 21:06:21,Xavier Wang写到:
this will turns to a error, because table element is not string, just like original table.concat
在 2011年10月11日 下午7:21,"Sebastien Lai" <237482@googlemail.com <mailto:237482@googlemail.com>>写道:
 On Tue, Oct 11, 2011 at 10:51 AM, Xavier Wang <weasley.wx@gmail.com <mailto:weasley.wx@gmail.com>> wrote:
 > some, maybe table.concat can accept a second sep:
 > print(table.concat(t, ':', ',') --> a:1,b:2,c:3
 >
 What about: {a={b={c={1, 2, 3, 4}}}}?
see pl.pretty from the `penlight' library, which comes with Lua for Windows already.

AltStyle によって変換されたページ (->オリジナル) /