Custom convenience operators with RxSwift

Just like when learning a new language you need to build up a dictionary to start understanding how the language works you got to learn the Rx operators and everything will eventually click together. This week however having mastered a few of the operators and used them all over the place I noticed that I’m re-using some patterns that add up to the code. replaceWith: Replace any element with a constant For example - when I just want to react to a certain group of events I replace the actual value emitted so that I can combine two or more Observables in one stream.