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

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

Parameters
ParameterDescription
oldValueScalar to replace.
newValueReplacement scalar.
Returns

The immutable replacement result.

Example

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