In the code below I used a for loop that prints the value of two items in my table.
Is there a way to print the table's contents without the for
loop?
local result = mysplit("--", ".--") --Function returns a table with a table containing two items. for i = 1, 2 do print(result[i]) end