Replace First medium

by George Flinn @ProjectFlinn

Take the Challenge

Implement the type ReplaceFirst which will replace the first occurrence of S in a tuple T with R. If no such S exists in T, the result should be T.
Back Share your Solutions Check out Solutions