wishthis/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js
2022-06-08 12:36:39 +02:00

12 lines
No EOL
580 B
JavaScript

import { operate } from '../util/lift';
import { mergeInternals } from './mergeInternals';
export function mergeScan(accumulator, seed, concurrent) {
if (concurrent === void 0) { concurrent = Infinity; }
return operate(function (source, subscriber) {
var state = seed;
return mergeInternals(source, subscriber, function (value, index) { return accumulator(state, value, index); }, concurrent, function (value) {
state = value;
}, false, undefined, function () { return (state = null); });
});
}
//# sourceMappingURL=mergeScan.js.map