Skip to content

Commit

Permalink
add more examples to join_by_string
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Dec 7, 2022
1 parent ad4024c commit 59b7c9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/shellUtils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ function assert_equal {
}

# Usage: join_by_string <delimiter> ...strings
# example: join_by_string ' + ' 'string 1' 'string 2'
# example: join_by_string ',' "${ARRAY_OF_STRINGS[@]}"
function join_by_string {
local separator="$1"
shift
Expand Down

0 comments on commit 59b7c9d

Please sign in to comment.