mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2025-12-06 06:36:11 +00:00
21 lines
273 B
Lua
21 lines
273 B
Lua
--- @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
|