Files
dotfiles/dot_config/nushell/nu_scripts/stdlib-candidate/std-rfc/tables/reject-ranges.nu
Cian Hughes 896af887ca Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows)
and improves grepability with neovim/telescope
2024-11-07 13:52:17 +00:00

15 lines
302 B
Nu

use ./row-indices.nu *
# Rejects one or more rows while keeping
# the original indices.
#
# Example - Rejects the first, fifth, and
# sixth rows from the table:
#
# ls / | reject ranges 0 4..5
export def "reject ranges" [ ...ranges ] {
enumerate
| flatten
| reject ...(row-indices ...$ranges)
}