public join(values as Array<CodeUnit>) as String:
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.
| Parameter | Description |
|---|---|
values | UTF-16 code units to join. |
Joined string.
units = f:[`K`, `l`, `y`, `n`] assert "".join(units) == "Klyn"