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

Returns a single-replacement snapshot without modifying this mutable text.

Parameters
ParameterDescription
oldValueText to replace.
newValueReplacement scalar.
Returns

The immutable replacement result.

Example

result = m"aba".replaceLast("a", 'z')