Template:Uniq

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
 
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 .. " "); seen[str] = true; end
+
     do if not seen[str] then print(str); seen[str] = true; end
 
     end
 
     end
 
|{{{1}}}}}
 
|{{{1}}}}}

Latest revision as of 01:08, 22 March 2009

1

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox