Skip to content

Latest commit

 

History

History
6 lines (3 loc) · 1.12 KB

File metadata and controls

6 lines (3 loc) · 1.12 KB

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