As of release 1.2.0, vectors and maps are available in the brash intepreter following the model defined by GNU Bash's arrays -- both normal (vector) and associative (map) arrays.
Array's are declared using the the following syntax:
declare -a vectorName
declare -A mapname
It is also possible to declare a vector by assigining a value to some member of the vector:
asYetUndefinedVariableName[40]=stuff
In the above example, a new array will be created and location 40 will be populated.
Unfortunately, it is not possible to declare "associative arrays" without using the declare -A statement.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As of release 1.2.0, vectors and maps are available in the brash intepreter following the model defined by GNU Bash's arrays -- both normal (vector) and associative (map) arrays.
Array's are declared using the the following syntax:
It is also possible to declare a vector by assigining a value to some member of the vector:
In the above example, a new array will be created and location 40 will be populated.
Unfortunately, it is not possible to declare "associative arrays" without using the declare -A statement.