diff options
| author | rebecca <ubq323@ubq323.website> | 2026-09-26 21:47:15 +0100 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-09-26 21:47:15 +0100 |
| commit | f5967d9f35eaaeb8ac797f91c03d98b54841516c (patch) | |
| tree | 2382a249e99a3bc1078be325c1a331e7782a3ec8 /table.lua | |
| parent | 5107345463be25bc471274bc82c503ba2acdf5b4 (diff) | |
delete Set because it is bad and replace it with table.keydiff which will be good and not bad
Diffstat (limited to 'table.lua')
| -rw-r--r-- | table.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/table.lua b/table.lua new file mode 100644 index 0000000..3f7f322 --- /dev/null +++ b/table.lua @@ -0,0 +1,10 @@ +local function keydiff(a, b) + local da,db = {}, {} + for k in pairs(a) do if b[k] == nil then da[k] = true end + for k in pairs(b) do if a[k] == nil then db[k] = true end + return da, db +end + +return { + keydiff = keydiff, +} |
