Content deleted Content added
Fred Gandt (talk | contribs) m minor var name change for clarity + amend comments to match |
Return 0 for non-existent articles |
||
Line 4:
local function count(haystack, needles)
local number = 0
if (haystack == nil) then
return number
end
-- While we have needles to look for
for index, needle in ipairs(needles) do
|