Currently, flatMapSingle
returns Single
and signals NoSuchElementException
if the source Maybe
is empty. flatMapSingleElement
remains Maybe
.
I'd consider renaming flatMapSingle
to flatMapSingleOrError
and flatMapSingleElement
to flatMapSingle
as I think a default Maybe
-> Maybe
transformer should better match the other such transformers.
Alternatively, drop flatMapSingle
and rename flatMapSingleElement
to flatMapSingle
so that the original behavior could be achieved via flatMapSingle.toSingle())
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4