Module:MOS: Difference between revisions
ArrowHead294 (talk | contribs) m Alphabetise dependencies |
switch helper function (find_item_in_table) for the one provided in utils (table_contains) |
||
| Line 6: | Line 6: | ||
local rat = require("Module:Rational") | local rat = require("Module:Rational") | ||
local utils = require("Module:Utils") | local utils = require("Module:Utils") | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
| Line 308: | Line 291: | ||
local current_mode = mode_string | local current_mode = mode_string | ||
for i = 1, #mode_string do | for i = 1, #mode_string do | ||
if not | if not utils.table_contains(rotations, current_mode) then | ||
table.insert(rotations, current_mode) | table.insert(rotations, current_mode) | ||
end | end | ||