Template:FL digit78
From Metabolomics.JP
(Difference between revisions)
(New page: {{#lua: local L = {} for word in stdin:gmatch("%S+") do s = string.sub(word,7,8) if (L[s] == nil) then L[s]=s end end table.sort(L) print(table.concat(L)) | {{#Searc...) |
|||
Line 1: | Line 1: | ||
+ | {{#repeat: SearchAll|2| | ||
{{#lua: | {{#lua: | ||
local L = {} | local L = {} | ||
+ | local h | ||
for word in stdin:gmatch("%S+") | for word in stdin:gmatch("%S+") | ||
− | do s = string.sub(word,7,8) | + | do h = string.sub(word,1,8) s = string.sub(word,7,8) |
− | if (L[ | + | if (L[h] == nil) then L[h]=s end |
end | end | ||
table.sort(L) | table.sort(L) | ||
− | + | table.foreach(L, function(x) print( x .. " " .. L[x] .. " ") end) | |
− | | {{#SearchTitle:^FL1AAA|}} }} | + | | {{#SearchTitle:^FL1AAA|}} }}| }} |