You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose _isStringNotEmpty returns false, so I wan't to continue the stream but still want to receive on the subscribe function the returned value of _isStringNotEmpty, in this case is false.
How to get it?
To clarify, what I mean, consider the following Haskell code:
(Just 3) >>= (\_ -> Just 4) >>= (\_ -> Just 7) >>= (\_ -> Nothing) >>= (\_ -> Just 10)
As the result I've got Nothing, because the 4th computation returns Nothing.
Thanks
The text was updated successfully, but these errors were encountered:
@kostonstyle ... I believe you're looking for mergeMap rather than map above, and you'd have each of those functions return an Observable, rather than a plain value.
Hi all
Consider following stream:
Suppose
_isStringNotEmpty
returnsfalse
, so I wan't to continue the stream but still want to receive on the subscribe function the returned value of_isStringNotEmpty
, in this case isfalse
.How to get it?
To clarify, what I mean, consider the following
Haskell
code:(Just 3) >>= (\_ -> Just 4) >>= (\_ -> Just 7) >>= (\_ -> Nothing) >>= (\_ -> Just 10)
As the result I've got
Nothing
, because the 4th computation returnsNothing
.Thanks
The text was updated successfully, but these errors were encountered: