Template:Uniq

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
(New page: {{#lua: S = {}; for label stdin:gmatch("([%S]+)") do S[label]=label; end print(table.concat(S, " ")) |{{{1}}}}})
 
Line 1: Line 1:
 
{{#lua:
 
{{#lua:
 
   S = {};
 
   S = {};
   for label stdin:gmatch("([%S]+)")
+
   for label stdin:gmatch("([^%s]+)")
 
     do S[label]=label; end
 
     do S[label]=label; end
 
   print(table.concat(S, " "))
 
   print(table.concat(S, " "))
 
|{{{1}}}}}
 
|{{{1}}}}}

Revision as of 13:32, 24 January 2009

./lua: /tmp/mw_ex_lua_3xBvDy:2: '=' or 'in' expected near 'stdin'

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox