Why does concatMap((x) => x) work the same as concatMap((x) => from(x))?
#7233
-
|
I am trying to understand the behavior of Here's the setup: It works the same when instead of doing What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
If you put a breakpoint inside the So yes, you don't need to use |
Beta Was this translation helpful? Give feedback.
-
|
Going up while debugging didn't get me to it, but I checked the source code and I got it. |
Beta Was this translation helpful? Give feedback.
If you put a breakpoint inside the
projectfunction and then navigate up you will seefromthere.The example is shown in code from the
masterbranch. But on the version that you use, the essence is about the same.So yes, you don't need to use
fromin places where the type is specified asObservableInput(which includesArrayLike<T>andIterable<T>).