Module:Interval table: Difference between revisions

CompactStar (talk | contribs)
No edit summary
CompactStar (talk | contribs)
No edit summary
Line 16: Line 16:
end
end
end
end
return ratios
-- Remove duplicates
local res = {}
local hash = {}
for _,v in ipairs(ratios) do
  if (not hash[ratios]) then
      res[#res+1] = v
      hash[v] = true
  end
end
return res
end
end