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

Replaces every non-overlapping text occurrence with one scalar.

Parameters
ParameterDescription
oldValueText to replace.
newValueReplacement scalar.
Returns

A new String; the receiver is unchanged.

Example

assert "hello".replace("ll", 'x') == "hexo"