Template:ClassMatrix: Difference between revisions
New page: {{#def:ALL|{{#SearchTitle:{{{1}}} }}}} {{#lua: local H = {}; for id in stdin:gmatch("%w+") do str = string.sub(id,{{{2}}},{{{3}}}); if (H[str] == nil) then H[str] = 1; e... |
No edit summary |
||
| Line 9: | Line 9: | ||
end | end | ||
end | end | ||
table.sort(H); | |||
for k,v in pairs(H) do | for k,v in pairs(H) do | ||
print(k .. v); | print(k .. v); | ||
Revision as of 12:05, 18 December 2008
{{#lua:
local H = {};
for id in stdin:gmatch("%w+") do
str = string.sub(id,{{{2}}},{{{3}}});
if (H[str] == nil) then H[str] = 1;
else H[str] = H[str] + 1;
end
end
table.sort(H);
for k,v in pairs(H) do
print(k .. v);
end
| }}