Files
neovim/runtime/lua/vim
Justin M. Keyes 9b028bd64f refactor(vim.iter)!: rename xxback() => rxx() #28503
Problem:
vim.iter has both `rfind()` and various `*back()` methods, which work
in "reverse" or "backwards" order. It's inconsistent to have both kinds
of names, and "back" is fairly uncommon (rust) compared to python
(rfind, rstrip, rsplit, …).

Solution:
- Remove `nthback()` and let `nth()` take a negative index.
  - Because `rnth()` looks pretty obscure, and because it's intuitive
    for a function named `nth()` to take negative indexes.
- Rename `xxback()` methods to `rxx()`.
  - This informally groups the "list-iterator" functions under a common
    `r` prefix, which helps discoverability.
- Rename `peekback()` to `pop()`, in duality with the existing `peek`.
2024-04-26 08:43:29 -07:00
..
2024-04-26 15:13:06 +01:00
2024-04-26 15:13:06 +01:00
2024-03-06 10:45:22 +00:00
2024-04-26 15:13:06 +01:00
2024-01-16 09:33:10 +00:00
2024-04-24 21:43:46 -05:00
2024-01-19 11:54:04 +00:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-03-06 10:45:22 +00:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-04-26 15:13:06 +01:00
2024-03-09 11:21:55 +00:00