I've a when condition with multiple options. For e...
# announcements
d
I've a when condition with multiple options. For each mapping i need to do something but I've a special case (else) that i need to map to something else... This is the pseudo-code I currently have (I've just replaced the real options I have and replaced it with dummies. Is there a way to avoid the definition of
call
and concatenate directly after
when
? Something like this pseudo code
Copy code
return when (it) { ... }?.subscribeOn(<http://Schedulers.io|Schedulers.io>())?.toObservable() else Observable.empty<String>()