Modul:table/isSubsetMap
Tampaian
Dokumentasi untuk modul ini dapat dibuat di Modul:table/isSubsetMap/doc
-- Imported from enwiktionary
-- Source: https://en.wiktionary.org/wiki/Module:table/isSubsetMap
-- License: CC BY-SA
local pairs = pairs
--[==[
Returns true if the first map, taken as a set, is a subset of the second map, taken as a set.]==]
return function(t1, t2)
for k in pairs(t1) do
if t2[k] == nil then
return false
end
end
return true
end