docs: update

This commit is contained in:
Dylan Araps 2019-09-19 17:47:07 +03:00
parent 9dd64366d9
commit 300a0fe11e
2 changed files with 2 additions and 5 deletions

View File

@ -679,6 +679,8 @@ allows us to effectively remove array duplicates.
**CAVEAT:** Requires `bash` 4+
**CAVEAT:** List order may not stay the same.
**Example Function:**
```sh

View File

@ -75,11 +75,6 @@ test_reverse_array() {
shopt -u compat44
}
test_remove_array_dups() {
IFS=$'\n' read -d "" -ra result < <(remove_array_dups 1 1 2 2 3 3 4 5)
assert_equals "${result[*]}" "1 2 3 4 5"
}
test_cycle() {
# shellcheck disable=2034
arr=(a b c d)