Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 484:5d43c68bd1e9
Style
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 29 Aug 2024 15:11:29 +0200 |
| parents | 1aa14a7d96dc |
| children | 7e319d23cd8a |
| files | share/local-bsdtools/array.sh |
| diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/share/local-bsdtools/array.sh Thu Aug 29 14:01:38 2024 +0200 +++ b/share/local-bsdtools/array.sh Thu Aug 29 15:11:29 2024 +0200 @@ -46,9 +46,9 @@ #: Create a new array #: #: Args: -#: $1 (str): The name of the array. -#: Must conform to shell variable naming conventions -#: $2... (optional): Optional initialization values +#: $1 (str): The name of the array. +#: Must conform to shell variable naming conventions +#: $2... (optional): Optional initialization values #: #: It is assumed that the array does not exist already. #: @@ -81,8 +81,8 @@ #: $1 (str): The name of the array. #: #: Output (stdout): -#: The number of elements of the array. -#: If the array does not exist the output is -1. +#: The number of elements of the array. +#: If the array does not exist the output is -1. #: array_length() { local _name @@ -138,11 +138,11 @@ #: Get an array value from a given index #: #: Args: -#: $1 (str): The name of the existing array -#: $2 (int): The index +#: $1 (str): The name of the existing array +#: $2 (int): The index #: #: Output (stdout): -#: The value at index $2. +#: The value at index $2. #: array_get() { local _name _index @@ -211,8 +211,8 @@ #: The iteration stops if the called function returns a falsy value. #: #: Args: -#: $1 (str): The name of an existing array. -#: $2 (str): The name of a function to be called with three arguments. +#: $1 (str): The name of an existing array. +#: $2 (str): The name of a function to be called with three arguments. #: array_for_each() { local _name _cb
