nushell/crates/nu-command/src/math
Dan Davison df94052180
Declare input and output types of commands (#6796)
* Add failing test that list of ints and floats is List<Number>

* Start defining subtype relation

* Make it possible to declare input and output types for commands

- Enforce them in tests

* Declare input and output types of commands

* Add formatted signatures to `help commands` table

* Revert SyntaxShape::Table -> Type::Table change

* Revert unnecessary derive(Hash) on SyntaxShape

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-11-10 10:55:05 +13:00
..
abs.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
avg.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
ceil.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
eval.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
floor.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
math_.rs Rename some files (#952) 2022-02-05 12:35:02 -05:00
max.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
median.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
min.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
mod.rs Rename some files (#952) 2022-02-05 12:35:02 -05:00
mode.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
product.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
reducers.rs Remove unnecessary #[allow(...)] annotations (#6870) 2022-10-24 20:12:16 +02:00
round.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
sqrt.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
stddev.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
sum.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
utils.rs Revert "Add support for optional list stream output formatting (#6325)" (#6454) 2022-08-31 18:09:40 -05:00
variance.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00