1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-23 12:07:32 +01:00
nushell/crates/nu-parser
Radek Vít 599bb9797d
Implement exclusive and inclusive ranges with ..< and .. ()
* Implement exclusive and inclusive ranges with .. and ..=

This commit adds right-exclusive ranges.

The original a..b inclusive syntax was changed to reflect the Rust notation.
New a..=b syntax was introduced to have the old behavior.

Currently, both a.. and b..= is valid, and it is unclear whether it's valid
to impose restrictions.

The original issue suggests .. for inclusive and ..< for exclusive ranges,
this can be implemented by making simple changes to this commit.

* Fix collect tests by changing ranges to ..=

* Fix clippy lints in exclusive range matching

* Implement exclusive ranges using `..<`
2020-09-14 09:53:08 +12:00
..
src Implement exclusive and inclusive ranges with ..< and .. () 2020-09-14 09:53:08 +12:00
Cargo.toml remove unused dependencies () 2020-09-09 13:57:51 -05:00