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