Volatile:Search

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 9: Line 9:
 
{{#lua:
 
{{#lua:
 
   local L = {};
 
   local L = {};
   local start = tonumber({{{2}}})*tonumber({{{3}}});
+
   local output ="";
 
   for word in stdin:gmatch("%S+") do
 
   for word in stdin:gmatch("%S+") do
 
     table.insert(L,word);
 
     table.insert(L,word);
 
   end
 
   end
 
   table.sort(L);
 
   table.sort(L);
   print(start);
+
  for idx=tonumber({{{2}}})*tonumber({{{3}}}),table.getn(L) do
 +
    output=output .. L[idx] .. " ";
 +
  end
 +
   print(output);
 
|{{#var:RESULT}}
 
|{{#var:RESULT}}
 
}}
 
}}

Revision as of 03:29, 29 June 2008



Search Result

View (previous ) (next ) ./lua: /tmp/mw_ex_lua_VHAVOl:7: bad argument #1 to 'tonumber' (value expected)

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox