klyn.String.replace
method
public replace(oldValue as Char, newValue as Char) as String
Description

Replaces every occurrence of one Unicode scalar with another.

Parameters
ParameterDescription
oldValueScalar to replace.
newValueReplacement scalar.
Returns

A new String; the receiver is unchanged.

Example

assert "aba".replace('a', 'z') == "zbz"