Template:FL digit78

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
 
(15 intermediate revisions by one user not shown)
Line 1: Line 1:
{{#repeat: SearchMainLink|2|
+
{{#repeat: MapLink|3|
 
{{#lua:
 
{{#lua:
 
   local L = {}
 
   local L = {}
 
   local C = {}
 
   local C = {}
   local h
+
   local h, j
 
   local i = 0
 
   local i = 0
 
   for word in stdin:gmatch("%S+")
 
   for word in stdin:gmatch("%S+")
 
     do h = string.sub(word,1,8) s = string.sub(word,7,8)
 
     do h = string.sub(word,1,8) s = string.sub(word,7,8)
      if (C[h] == nil) then C[h]=s; L[i]=s; i=i+1 end
+
      if (C[s] == nil) then
 +
        C[s]=s
 +
        i=i+1
 +
        L[i]=s .. h
 +
      end
 
     end
 
     end
 
   table.sort(L)
 
   table.sort(L)
   for i=1,(# L) do
+
   for j=1,i do
     print(i .. " " .. L[i] .. " ")
+
     print( "ListMol " .. string.sub(L[j],3,10) .. " " .. string.sub(L[j],1,2) .. " ")
 
   end
 
   end
 
| {{#SearchTitle:^{{{1}}}|}} }}| }}
 
| {{#SearchTitle:^{{{1}}}|}} }}| }}

Latest revision as of 05:21, 5 September 2008

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox