join
concatenates a list of strings
(list subjects, string separator) -> string
Concatenates the list of subjects into a single string using the given separator.
Use the empty string as a separator to join all items together directly.
Each item in subjects is cast to a string before concatenation. If any item cannot be cast to string, an error is thrown. If any item is nil, it is concatenated into the output string as “nil”.
Returns nil if subjects is nil or separator is nil.
Parameters
| Name | Type | Description |
|---|---|---|
subjects |
list | The list of strings to concatenate |
separator |
string | The separator to use. Use an empty string to concatenate list items directly. |