join
Concatenates the lists given by the first argument using the second argument as separator between each pair of lists.
Signature
join(lists:list of lists, separator:list=empty list) -> list |
Parameters
Name | Type | Description |
---|---|---|
lists | list of lists | Specifies the lists to join. This argument must be a list of two or more lists. All nested lists must be of the same type. |
separator | list | Optional argument which specifies the separator by which to delimit the joined lists. If not supplied, no separator will be used.
The separator must be of type list. Use the list function to create a separator. For example, the expression list(',') specifies a single comma character as separator. |
Examples
The following execution steps illustrate how to join two lists. Step 1 produces the first list. Step 2 produces the second list. Step 3 creates an object of type "list of lists" that contains both lists. Finally, step 4 joins the lists, using the semi-colon character as separator.