Skip to content

Commit

Permalink
chore: readd data.lua but deprecate it
Browse files Browse the repository at this point in the history
  • Loading branch information
primeapple committed Nov 8, 2024
1 parent f84de81 commit 47e4230
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lua/auto-save/utils/data.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- @deprecated
local M = {}

--- @deprecated
function M.set_of(list)
local set = {}
for i = 1, #list do
set[list[i]] = true
end
return set
end

--- @deprecated
function M.not_in(var, arr)
if M.set_of(arr)[var] == nil then
return true
end
end

return M

0 comments on commit 47e4230

Please sign in to comment.