mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	refactor(lua): deprecate tbl_flatten #28457
forgot some changes in 9912a4c81b
			
			
This commit is contained in:
		| @@ -173,6 +173,7 @@ LUA | ||||
| - *vim.pretty_print()*			Use |vim.print()| instead. | ||||
| - *vim.loop*				Use |vim.uv| instead. | ||||
| - *vim.tbl_add_reverse_lookup()* | ||||
| - *vim.tbl_flatten()*			Use |Iter:flatten()| instead. | ||||
| - *vim.tbl_islist()*			Use |vim.islist()| instead. | ||||
|  | ||||
| NORMAL COMMANDS | ||||
|   | ||||
| @@ -565,6 +565,7 @@ release. | ||||
|  | ||||
| • Lua stdlib: | ||||
|   - |vim.tbl_add_reverse_lookup()| | ||||
|   - |vim.tbl_flatten()| | ||||
|   - |vim.tbl_islist()| | ||||
|  | ||||
|  vim:tw=78:ts=8:sw=2:et:ft=help:norl: | ||||
|   | ||||
| @@ -553,6 +553,7 @@ end | ||||
| ---@param t table List-like table | ||||
| ---@return table Flattened copy of the given list-like table | ||||
| function vim.tbl_flatten(t) | ||||
|   vim.deprecate('vim.tbl_flatten', 'vim.iter(…):flatten():totable()', '0.12') | ||||
|   local result = {} | ||||
|   --- @param _t table<any,any> | ||||
|   local function _tbl_flatten(_t) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes