mirror of
https://github.com/sagiegurari/duckscript
synced 2024-10-14 11:53:05 +00:00
Add array_size alias to array_length command
This commit is contained in:
parent
f090237e9d
commit
8240f74aa4
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue