lua-users home
lua-l archive

[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" < <>>写道:

    On Tue, Oct 11, 2011 at 10:51 AM, Xavier Wang < <>> 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.