Add array_size alias to array_length command

This commit is contained in:
sagie gur ari 2020-05-05 17:41:45 +00:00
parent f090237e9d
commit 8240f74aa4
3 changed files with 8 additions and 3 deletions

View file

@ -2,6 +2,7 @@
### v0.3.4
* Add array_size alias to array_length command.
* New array_remove command.
* New set_new command.
* New is_set command.

View file

@ -13,7 +13,7 @@
* [std::collections::ArrayGet (array_get)](#std__collections__ArrayGet)
* [std::collections::ArrayIsEmpty (array_is_empty)](#std__collections__ArrayIsEmpty)
* [std::collections::ArrayJoin (array_join)](#std__collections__ArrayJoin)
* [std::collections::ArrayLength (array_length, arrlen)](#std__collections__ArrayLength)
* [std::collections::ArrayLength (array_length, arrlen, array_size)](#std__collections__ArrayLength)
* [std::collections::ArrayPop (array_pop)](#std__collections__ArrayPop)
* [std::collections::ArrayPush (array_push, array_add, array_put)](#std__collections__ArrayPush)
* [std::collections::ArrayRemove (array_remove)](#std__collections__ArrayRemove)
@ -757,7 +757,7 @@ echo Array length: ${len} released: ${released}
#### Aliases:
array_length, arrlen
array_length, arrlen, array_size
<a name="std__collections__ArrayPop"></a>
## std::collections::ArrayPop

View file

@ -20,7 +20,11 @@ impl Command for CommandImpl {
}
fn aliases(&self) -> Vec<String> {
vec!["array_length".to_string(), "arrlen".to_string()]
vec![
"array_length".to_string(),
"arrlen".to_string(),
"array_size".to_string(),
]
}
fn help(&self) -> String {