Template:Uniq

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{{#lua:
 
{{#lua:
   S = {};
+
   seen = {};
   for label in stdin:gmatch("([^%s]+)")
+
   for str in stdin:gmatch("([%w]+)")
     do S[label]=label; end
+
     do if not seen[str] then print(str); seen[str] = true; end
  print(table.concat(S, " "))
+
    end
 
|{{{1}}}}}
 
|{{{1}}}}}

Latest revision as of 01:08, 22 March 2009

1

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox