Comparison

util/set.lua @ 8555:4f0f5b49bb03

vairious: Add annotation when an empty environment is set [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 28 Feb 2018 20:06:26 +0100
parent 8522:073e517a1487
child 9488:a96a2fbcc6c0
comparison
equal deleted inserted replaced
8554:12a68e0d0ecf 8555:4f0f5b49bb03
9 local ipairs, pairs, setmetatable, next, tostring = 9 local ipairs, pairs, setmetatable, next, tostring =
10 ipairs, pairs, setmetatable, next, tostring; 10 ipairs, pairs, setmetatable, next, tostring;
11 local t_concat = table.concat; 11 local t_concat = table.concat;
12 12
13 local _ENV = nil; 13 local _ENV = nil;
14 -- luacheck: std none
14 15
15 local set_mt = { __name = "set" }; 16 local set_mt = { __name = "set" };
16 function set_mt.__call(set, _, k) 17 function set_mt.__call(set, _, k)
17 return next(set._items, k); 18 return next(set._items, k);
18 end 19 end