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

Replaces every occurrence of a Unicode scalar with immutable text.

Parameters
ParameterDescription
oldValueScalar to replace, including U+0000.
newValueReplacement text, which may be empty.
Returns

A new String; the receiver is unchanged.

Example

assert "aba".replace('a', "xy") == "xybxy"