Skip to content

Why does concatMap((x) => x) work the same as concatMap((x) => from(x))? #7233

Answered by demensky
ilyakonrad asked this question in Q&A
Discussion options

You must be logged in to vote

If you put a breakpoint inside the project function and then navigate up you will see from there.
The example is shown in code from the master branch. But on the version that you use, the essence is about the same.

So yes, you don't need to use from in places where the type is specified as ObservableInput (which includes ArrayLike<T> and Iterable<T>).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ilyakonrad
Comment options

You must be logged in to vote
1 reply
@jakovljevic-mladen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants