Module:Arguments: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
Fix __pairs and __ipairs functions to handle the nil marker |
சி tweak one of the comments and make some beautification fixes, now that this is in the job queue |
||
வரிசை 99:
local function mergeArgs(iterator, tables)
-- Accepts multiple tables as input and merges their keys and values into one table using the specified iterator.
-- If a value is already present it is not overwritten; tables listed earlier have
-- We are also memoizing nil values, but those values can be overwritten.
for _, t in ipairs(tables) do
வரிசை 169:
metatable.doneIpairs = true
end
return function (
local nk, val = next(
if val == nilArg then
val = nil
வரிசை 183:
metatable.doneIpairs = true
end
return function (
local val = metaArgs[i + 1]
if val == nil then
| |||