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?
1 | local result = mysplit( "--" , ".--" ) --Function returns a table with a table containing two items. |
2 |
3 | for i = 1 , 2 do |
4 | print (result [ i ] ) |
5 | end |