Add search terms to 'math' commands (#5990)

* Remove 'average' from search_terms

* Add search_terms to 'floor' and 'variance'
This commit is contained in:
valdaarhun 2022-07-08 19:44:51 +05:30 committed by GitHub
parent 83458510a9
commit 125e60d06a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -18,6 +18,10 @@ impl Command for SubCommand {
"Applies the floor function to a list of numbers"
}
fn search_terms(&self) -> Vec<&str> {
vec!["floor"]
}
fn run(
&self,
engine_state: &EngineState,

View File

@ -23,7 +23,7 @@ impl Command for SubCommand {
}
fn search_terms(&self) -> Vec<&str> {
vec!["middle", "average"]
vec!["middle", "median"]
}
fn run(

View File

@ -44,7 +44,7 @@ impl Command for SubCommand {
}
fn search_terms(&self) -> Vec<&str> {
vec!["common", "often", "average"]
vec!["common", "often"]
}
fn run(

View File

@ -21,6 +21,10 @@ impl Command for SubCommand {
"Finds the variance of a list of numbers or tables"
}
fn search_terms(&self) -> Vec<&str> {
vec!["deviation", "dispersion", "variance", "variation"]
}
fn run(
&self,
_engine_state: &EngineState,