nushell/crates/nu-cli/src/evaluate
Radek Vít 599bb9797d
Implement exclusive and inclusive ranges with ..< and .. (#2541)
* 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
..
evaluate_args.rs Match cleanup (#2290) 2020-08-02 18:34:33 -04:00
evaluator.rs Implement exclusive and inclusive ranges with ..< and .. (#2541) 2020-09-14 09:53:08 +12:00
mod.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
operator.rs Add modulo operator and simplify in/not-in (#2505) 2020-09-07 12:12:55 +12:00
variables.rs Extract out history parts. 2020-08-27 06:28:18 -05:00