nushell/crates/nu-data/src
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
..
base Implement exclusive and inclusive ranges with ..< and .. (#2541) 2020-09-14 09:53:08 +12:00
config Add minor theme support (#2449) 2020-09-01 17:09:55 +12:00
utils Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
base.rs allow decimals as a range boundary (#2509) 2020-09-08 05:30:11 +12:00
command.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
config.rs Command especific configuration extraction baseline. 2020-08-26 10:33:55 -05:00
dict.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
lib.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
operators.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
primitive.rs Default alignment (#2481) 2020-09-01 19:08:41 -05:00
process.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
types.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
value.rs Allow math avg to work on durations (#2529) 2020-09-12 18:56:05 -05:00