gobash introduces two key collections: List and Map. Both collections include a number of methods that can be convenient for everyday development.

In the example below, we use an instance of a List to keep URLs of several GitHub projects and then close each of those projects in a loop.

. gobash/gobash

$lst add ""
$lst add ""

# Print length.
$lst len

# Clone each repo.
for (( i=0; i<$($lst len); i++)); do
        git clone $($lst get $i)

# Print the list.
$lst to_string


Equality in gobash is done based on object identity. Future changes could consider using eq methods to check for equality (similar to other programming languages).