Template:Uniq
From Metabolomics.JP
(Difference between revisions)
| (One intermediate revision by one user not shown) | |||
| Line 2: | Line 2: | ||
seen = {}; | seen = {}; | ||
for str in stdin:gmatch("([%w]+)") | for str in stdin:gmatch("([%w]+)") | ||
| − | do if not seen[str] then print(str | + | do if not seen[str] then print(str); seen[str] = true; end |
| + | end | ||
|{{{1}}}}} | |{{{1}}}}} | ||
Latest revision as of 01:08, 22 March 2009
1