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
Passing a list into the reduce method seems like it would only be valid if you could guarantee that the Observable would only be subscribed to once. Why isn't there a reduce method that takes a Supplier as its first argument?
The text was updated successfully, but these errors were encountered:
We had to revert these changes due to issues shown in #1883. It was done in #1884.
You can instead use collect for the mutable reduce use case which now uses a factory for the initial value.
We'll have to evaluate whether scan needs a new signature to support this and if so add it later in 1.1 with a new name such as scanTo since we can't overload the method due to generics, type erasure and lambdas colliding.
In this example (https://github.com/ReactiveX/RxJava/wiki/Mathematical-and-Aggregate-Operators#reduce)
Passing a list into the reduce method seems like it would only be valid if you could guarantee that the Observable would only be subscribed to once. Why isn't there a reduce method that takes a Supplier as its first argument?
The text was updated successfully, but these errors were encountered: