table iteration problem
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: table iteration problem
- From: Victor Young <littlehaker@...>
- Date: 2011年10月18日 11:56:56 +0800
For example, I have following codes:
t = {
x=1,
y=2,
a=3,
b=4
}
for k, v in pairs(t) do
print(k, v)
end
then the output is:
If I want the output to be like follow:
just in the order of how I construct the table, how could I do? Thanks!