-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
append
/prepend
consistent for ranges (#10231)
# Description This PR makes `append`/`prepend` more consistent, in particular, it allows you to work with ranges. Previously, you couldn't append a list by range: ```nu > 0..1 | append 2..4 ╭──────╮ │ 0 │ │ 1 │ │ 2..4 │ ╰──────╯ ``` Now it works: ```nu > 0..1 | append 2..4 ╭───╮ │ 0 │ │ 1 │ │ 2 │ │ 3 │ │ 4 │ ╰───╯ ``` # User-Facing Changes If someone needs the old behavior, then it can be obtained like this: ```nu > 0..1 | append [2..4] ╭──────╮ │ 0 │ │ 1 │ │ 2..4 │ ╰──────╯ ```
- Loading branch information
Showing
2 changed files
with
102 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters