Skip to content

tm_join Function

tm_join produces a string by concatenating all of the elements of the specified list of strings with the specified separator.

hcl
tm_join(separator, list)

Examples

sh
tm_join("-", ["foo", "bar", "baz"])
"foo-bar-baz"
tm_join(", ", ["foo", "bar", "baz"])
foo, bar, baz
tm_join(", ", ["foo"])
foo
  • tm_split performs the opposite operation: producing a list by separating a single string using a given delimiter.