Difference between revisions of "Module:TableTools"
Jump to navigation
Jump to search
sparseIpairs: return nil explicitly if i > lim
en>Mr. Stradivarius m (Protected Module:TableTools: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
en>Mr. Stradivarius (sparseIpairs: return nil explicitly if i > lim) |
||
Line 186: | Line 186: | ||
local key = nums[i] | local key = nums[i] | ||
return key, t[key] | return key, t[key] | ||
else | |||
return nil, nil | |||
end | end | ||
end | end |