Skip to content

initial value factory overload for scan? #3873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
davidmoten opened this issue Apr 21, 2016 · 2 comments
Closed

initial value factory overload for scan? #3873

davidmoten opened this issue Apr 21, 2016 · 2 comments
Labels

Comments

@davidmoten
Copy link
Collaborator

I was just using Observable.scan() and it has a method with an initial value but no method with an intial value factory like:

public final <R> Observable<R> scan(Func0<R> initialValue, Func2<R, ? super T, R> accumulator); 

I can work around this with defer but are people happy if I submit a PR with a factory parameter (and perhaps for the reduce method as well)?

@zsxwing
Copy link
Member

zsxwing commented Apr 22, 2016

See #3667

@akarnokd
Copy link
Member

Closing as duplicate to #3667.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants