Type Challenges Judge
Problems
Progress
Ranking
Replace
Implement Replace<S, From, To> which replace the string From with To once in the given string S
Replace<S, From, To>
From
To
S
For example
type replaced = Replace<'types are fun!', 'fun', 'awesome'> // expected to be 'types are awesome!'