wishthis/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js

12 lines
580 B
JavaScript
Raw Permalink Normal View History

2022-06-08 10:36:39 +00:00
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