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