Closed deviousasti closed 4 years ago
switchMap
in other implementations is consistent with flatMap
, concatMap
as a projection to a higher order observable and subsequent reduction.
The problem with the prior implementation was it tried to replicate Switch
with a simple mutable. The actual implementation of Switch
is non-trivial.
Closes #134
Thank you for this PR! Does anyone know whether this adheres to the original goal of the function? Was the prior implementation an over-eager optimization?