type-challenges/questions/25170-medium-replace-first
2023-12-26 06:07:37 +01:00
..
2023-12-26 06:07:37 +01:00
2023-03-18 00:04:02 +00:00
2023-03-18 00:04:02 +00:00

Replace First medium

by George Flinn @ProjectFlinn

Take the Challenge

Implement the type ReplaceFirst<T, S, R> 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