Skip to content

Commit 3f18df3

Browse files
committed
Add ifEmpty note and fixed ordering
1 parent f55b532 commit 3f18df3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Data/operators.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ flatMapFirst,❌,
3030
flatMapLatest,switchToLatest,
3131
from,❌,
3232
groupBy,❌,
33-
ifEmpty(default:),,
34-
ifEmpty(switchTo:),replaceEmpty(with:),
33+
ifEmpty(default:),replaceEmpty(with:),
34+
ifEmpty(switchTo:),❌,Could be achieved with composition - replaceEmpty(with: publisher).switchToLatest()
3535
ignoreElements,ignoreOutput,
3636
interval,❌,
3737
just,Publishers.Just,

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ It's based on the following blog post: [https://medium.com/gett-engineering/rxsw
7878
| flatMapLatest | switchToLatest | |
7979
| from || |
8080
| groupBy || |
81-
| ifEmpty(default:) | | |
82-
| ifEmpty(switchTo:) | replaceEmpty(with:) | |
81+
| ifEmpty(default:) | replaceEmpty(with:) | |
82+
| ifEmpty(switchTo:) | | Could be achieved with composition - replaceEmpty(with: publisher).switchToLatest() |
8383
| ignoreElements | ignoreOutput | |
8484
| interval || |
8585
| just | Publishers.Just | |

Resources/operators.jpg

16.1 KB
Loading

0 commit comments

Comments
 (0)