Comparison

util/set.lua @ 6675:cb5b56ddabfd

util.set: Rename method argument to avoid name clash [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2015 19:51:35 +0100
parent 6674:a0ce52e11122
child 6777:5de6b93d0190
comparison
equal deleted inserted replaced
6674:a0ce52e11122 6675:cb5b56ddabfd
83 83
84 function set:remove(item) 84 function set:remove(item)
85 items[item] = nil; 85 items[item] = nil;
86 end 86 end
87 87
88 function set:add_list(list) 88 function set:add_list(item_list)
89 if list then 89 if item_list then
90 for _, item in ipairs(list) do 90 for _, item in ipairs(item_list) do
91 items[item] = true; 91 items[item] = true;
92 end 92 end
93 end 93 end
94 end 94 end
95 95