ctietze, I have a #Swift #Combine question!
Never wrote my own
Publisher
. Always combined others.But this once, I believe that it would be nicer to have a struct instead of a function.
So I wrote a Combine.Publishers.Either type, but now I'm not sure if that's all there is, really.
https://gist.github.com/DivineDominion/de85d2dc3d42f6ebfe29f1d35a3c7da3
Feedback very much appreciated! 🙏
Add comment