rxswift-to-combine-cheatsheet icon indicating copy to clipboard operation
rxswift-to-combine-cheatsheet copied to clipboard

Add the equivalent of concatMap

Open denizcoskun opened this issue 5 years ago • 6 comments
trafficstars

concatMap is a quite useful operator in the Rx world and it was a bit disappointing that Combine didn't have a built-in equivalent of it until I found that flatMap behaves like concatMap when used correctly.

denizcoskun avatar Aug 08 '20 11:08 denizcoskun

I'm not sure that's entirely true, there was a huge discussion about this in one of the slack channels and some folks mentioned it has some differences. I'll try to find that info.

freak4pc avatar Aug 08 '20 11:08 freak4pc

@freak4pc thanks, really appreciate that!

denizcoskun avatar Aug 08 '20 15:08 denizcoskun

I'm not sure that's entirely true, there was a huge discussion about this in one of the slack channels and some folks mentioned it has some differences. I'll try to find that info.

here's where I got the information: https://forums.swift.org/t/combine-what-are-those-multicast-functions-for/26677/26

denizcoskun avatar Aug 08 '20 15:08 denizcoskun

I couldn't find anything against this claim, if you rebase this I'll merge it . Thanks!

freak4pc avatar Sep 24 '20 18:09 freak4pc

I couldn't find anything against this claim, if you rebase this I'll merge it . Thanks!

@freak4pc thanks, it is rebased now.

denizcoskun avatar Nov 29 '20 00:11 denizcoskun

Hey @denizcoskun -

There was an interesting research and discussion in CombineExt which seems to indicate this variation isn't quite similar to concatMap in all forms.

What do you think?

https://github.com/CombineCommunity/CombineExt/pull/68

freak4pc avatar Dec 01 '20 16:12 freak4pc