join
Joins a list of strings into a single string using a separator.
Description
The join
function concatenates the elements of the input list xs
into a
single string, separated by the specified separator
.
xs: list
A list of strings to join.
separator: string (optional)
The string used to separate elements in the result.
Defaults to ""
.