klyn.String.join
method
public join(values as Array<CodeUnit>) as String:
Description

Joins an array of UTF-16 code units using this string as separator.

Adjacent high and low surrogates are decoded as one supplementary character. An isolated surrogate raises ValueException while its textual representation is built.

Parameters
ParameterDescription
valuesUTF-16 code units to join.
Returns

Joined string.

Throws
  • ValueException if values contains an isolated surrogate or U+0000, which cannot be stored in a String.
Example
units = f:[`K`, `l`, `y`, `n`]
assert "".join(units) == "Klyn"