Volatile:Search
From Metabolomics.JP
(Difference between revisions)
Line 9: | Line 9: | ||
{{#lua: | {{#lua: | ||
local L = {}; | local L = {}; | ||
− | local | + | 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( | + | 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)