New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vim.iter: flatten() non-list input #28448
Labels
complexity:low
Low-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.md
enhancement
feature request
lua
stdlib
Milestone
Comments
justinmk
added
enhancement
feature request
lua
stdlib
complexity:low
Low-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.md
labels
Apr 21, 2024
justinmk
added
the
needs:discussion
For PRs that propose significant changes to some part of the architecture or API
label
Apr 22, 2024
justinmk
removed
the
needs:discussion
For PRs that propose significant changes to some part of the architecture or API
label
May 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
complexity:low
Low-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.md
enhancement
feature request
lua
stdlib
Problem
iter:flatten() currently fails ("flatten() requires a list-like table") on this code from gen_lsp.lua:
neovim/scripts/gen_lsp.lua
Lines 262 to 265 in 35e3883
Expected behavior
tbl_flatten
accepted array-like input and the above gen_lsp code leveraged that to drop nil items.Can we enhance
Iter:flatten()
to work for arrays?The text was updated successfully, but these errors were encountered: