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