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 ="";
 
   local output ="";
 
   for word in stdin:gmatch("%S+") do
 
   for word in stdin:gmatch("%S+") do
Line 14: Line 15:
 
   end
 
   end
 
   table.sort(L);
 
   table.sort(L);
   for idx=tonumber({{{2}}})*tonumber({{{3}}}),table.getn(L) do
+
   for idx=start, math.max(table.getn(L),start+tonumber({{{2}}})) do
 
     output=output .. L[idx] .. " ";
 
     output=output .. L[idx] .. " ";
 
   end
 
   end

Revision as of 03:31, 29 June 2008



Search Result

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

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox