neovim/runtime
Gregory Anders 9489406879 fix(iter): remove special case totable for map-like tables
This was originally meant as a convenience but prevents possible
functionality. For example:

  -- Get the keys of the table with even values
  local t = { a = 1, b = 2, c = 3, d = 4 }
  vim.iter(t):map(function(k, v)
    if v % 2 == 0 then return k end
  end):totable()

The example above would not work, because the map() function returns
only a single value, and cannot be converted back into a table (there
are many such examples like this).

Instead, to convert an iterator into a map-like table, users can use
fold():

  vim.iter(t):fold({}, function(t, k, v)
    t[k] = v
    return t
  end)
2023-04-19 07:52:04 -06:00
..
autoload fix(checkhealth): fix crash due to incorrect argument type 2023-04-16 12:26:13 +02:00
colors fix(runtime): use g:terminal_color_{0-15} in colorschemes (#20637) 2022-10-17 15:24:37 +01:00
compiler vim-patch:86b4816766d9 (#21314) 2022-12-08 16:33:38 +01:00
doc fix(iter): remove special case totable for map-like tables 2023-04-19 07:52:04 -06:00
ftplugin fix(runtime): add commentstring for C# ftplugin (#23039) 2023-04-12 13:59:11 +02:00
indent vim-patch:partial:dd60c365cd26 (#22437) 2023-02-28 09:34:27 +01:00
keymap
lua fix(iter): remove special case totable for map-like tables 2023-04-19 07:52:04 -06:00
macros
pack/dist/opt feat!: remove vimballs (#22402) 2023-04-11 19:10:36 +02:00
plugin refactor: remove :CheckHealth 2023-04-12 00:01:34 +02:00
queries refactor(treesitter)!: rename help parser to vimdoc 2023-04-01 15:07:16 +02:00
spell
syntax vim-patch:8.2.4934: string interpolation fails when not evaluating 2023-04-15 19:01:19 +08:00
tools
tutor docs(tutor): fix TODO line demo (#21965) 2023-01-25 09:46:00 +08:00
CMakeLists.txt refactor(build): make installation of runtime/ more effective 2023-03-07 20:16:52 +01:00
delmenu.vim
filetype.lua feat(runtime)!: remove filetype.vim (#20428) 2022-10-17 08:52:40 +02:00
ftoff.vim
ftplugin.vim
ftplugof.vim
indent.vim
indoff.vim
macmap.vim
makemenu.vim
menu.vim feat!: remove hardcopy 2023-01-03 10:07:43 +00:00
mswin.vim feat(ex_cmds)!: remove :behave 2023-04-13 12:15:30 +02:00
neovim.ico feat(windows): show icon in terminal titlebar, taskbar #20607 2022-10-13 05:48:12 -07:00
nvim.appdata.xml NVIM v0.9.0 2023-04-07 13:26:29 +02:00
nvim.desktop
nvim.png
optwin.vim feat(options)!: deprecate paste, remove pastetoggle (#22647) 2023-03-13 10:29:11 +08:00
synmenu.vim vim-patch:3c053a1a5ad2 (#20679) 2022-10-17 08:19:48 +02:00