Table.concat

Hello all. I am ashamed to ask this, cause it must be obvious, but i can’t figure out why it doenst work. Can anyone tell me?


function setup()
    t = {"a","b","c"}
    print("this works, because t is a table:")
    print(table.concat(t,"-"))
    print("but this generate an error... why?")
    print(t:concat("-"))
end

my mistake, it didn’t work the way I thought it would. Can a post in error be removed.

I think you just can’t do that.
“table” works like “math” and it doesn’t work as if you have created a class.
I might be mistaken, if someone has a better explanation.