public replaceLast(oldValue as Char, notnull newValue as String) as String
Returns a single-replacement snapshot without modifying this mutable text.
| Parameter | Description |
|---|---|
oldValue | Scalar to replace. |
newValue | Replacement text. |
The immutable replacement result.
result = m"aba".replaceLast('a', "z")