Skip to content
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

fix(scan): accumulator passes current index #1632

Closed
wants to merge 1 commit into from

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Apr 17, 2016

Description:

This PR adds small changes to accumulator of scan to pass index of source. Still does not passes source observable.

Related issue (if exists):

closes #1614

@@ -32,23 +32,23 @@ import {Subscriber} from '../Subscriber';
* @see {@link mergeScan}
* @see {@link reduce}
*
* @param {function(acc: R, value: T): R} accumulator The accumulator function
* @param {function(acc: R, value: T, , index: number): R} accumulator The accumulator function
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kwonoj Can you fix these commas? Should be , not , ,. Also limiting the line width to 80 chars would be good.

@staltz
Copy link
Member

staltz commented Apr 18, 2016

Besides the comment I placed in code, looks good to merge in my opinion.

@kwonoj
Copy link
Member Author

kwonoj commented Apr 21, 2016

I'll check this in later today if there isn't other suggestions around.

@kwonoj
Copy link
Member Author

kwonoj commented Apr 23, 2016

Merged with a3ec896.

@kwonoj kwonoj closed this Apr 23, 2016
@kwonoj kwonoj deleted the scan-index branch April 23, 2016 06:16
@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why no index or observable arguments in scan's accumulator?
2 participants