Module:CallAssert: Difference between revisions

Jump to navigation Jump to search
Created page with "local function pack(...) return {...}, select('#', ...) end local function mapArray(func, array, count) local result = {} for i = 1, count or #array do result[i] = func(array[i]) end return result end local function quote(value) if type(value) == 'string' then return (string.gsub(string.format('%q', value), '\\\n', '\\n')) -- Outer parentheses remove second value returned by gsub end local str = tostring(value) if type(value) == 'table' and str ~= 'table'..."
imported>Xaosflux
m (Changed protection level for "Module:CallAssert": used in interface MediaWiki:Protectedinterface ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)))
 
(Created page with "local function pack(...) return {...}, select('#', ...) end local function mapArray(func, array, count) local result = {} for i = 1, count or #array do result[i] = func(array[i]) end return result end local function quote(value) if type(value) == 'string' then return (string.gsub(string.format('%q', value), '\\\n', '\\n')) -- Outer parentheses remove second value returned by gsub end local str = tostring(value) if type(value) == 'table' and str ~= 'table'...")
 
(No difference)

Navigation menu