mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #32889 from fidelity/feature/doc-change
This commit is contained in:
commit
d53cb81bed
@ -7,8 +7,8 @@ description: |-
|
||||
|
||||
# `join` Function
|
||||
|
||||
`join` produces a string by concatenating together all elements of a given
|
||||
list of strings with the given delimiter.
|
||||
`join` produces a string by concatenating all of the elements of the specified
|
||||
list of strings with the specified separator.
|
||||
|
||||
```hcl
|
||||
join(separator, list)
|
||||
@ -17,6 +17,8 @@ join(separator, list)
|
||||
## Examples
|
||||
|
||||
```
|
||||
> join("-", ["foo", "bar", "baz"])
|
||||
"foo-bar-baz"
|
||||
> join(", ", ["foo", "bar", "baz"])
|
||||
foo, bar, baz
|
||||
> join(", ", ["foo"])
|
||||
|
Loading…
Reference in New Issue
Block a user