Template:Uniq
From Metabolomics.JP
(Difference between revisions)
Line 1: | Line 1: | ||
{{#lua: | {{#lua: | ||
− | + | seen = {}; | |
for str in stdin:gmatch("([%w]+)") | for str in stdin:gmatch("([%w]+)") | ||
− | do | + | do if not seen[str] then print(str .. " "); seen[str] = true; end |
− | + | ||
|{{{1}}}}} | |{{{1}}}}} |
Revision as of 13:48, 24 January 2009
./lua: /tmp/mw_ex_lua_LOnYzc:3: 'end' expected (to close 'for' at line 2) near '<eof>'