We can do either string.split("1,2,3",",") or ("1,2,3"):split(",") and receive the same result.
However tab = {} table.insert(tab, "hi") works while tab = {} tab:insert("hi") throws the error
tab = {} tab:insert("hi"):1: attempt to call a nil value
This seems inconsistent, am I doing something wrong or is there a good reason why calling methods in Lua is different?
Thank you,