array->join

Joins values into a string.

Target member

Signature

1array->join(delimiter::string='')

Joins values into a string.

array->join is called with member syntax on a receiver value. array->join is useful when moving through groups of values. Prefer collection operations that match the shape of the data rather than converting everything to strings.

Parameters

delimiter
Optional value of type string. Supply delimiter positionally unless the signature shows a keyword form.

Examples

Basic call

1array('a','b')->join(',')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.