mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
feat(lua): deprecate vim.tbl_add_reverse_lookup
This commit is contained in:
committed by
Christian Clason
parent
6525832a8c
commit
e52c25b761
@ -465,9 +465,12 @@ end
|
||||
--- `tbl_add_reverse_lookup { A = 1 } == { [1] = 'A', A = 1 }`
|
||||
---
|
||||
--- Note that this *modifies* the input.
|
||||
---@deprecated
|
||||
---@param o table Table to add the reverse to
|
||||
---@return table o
|
||||
function vim.tbl_add_reverse_lookup(o)
|
||||
vim.deprecate('vim.tbl_add_reverse_lookup', nil, '0.12')
|
||||
|
||||
--- @cast o table<any,any>
|
||||
--- @type any[]
|
||||
local keys = vim.tbl_keys(o)
|
||||
|
Reference in New Issue
Block a user