frontend/.pnpm-store/v3/files/06/481296214078d1b92559bdd8667007131ee5b66d66a81c568b7f522fcd010e3227bda4083c72fab274c6d531aaac082aebcfb6c5b965c5c1c74b29cc38ae14

12 lines
580 B
Plaintext

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