frontend/.pnpm-store/v3/files/42/c12a2e74317d3b8d55136ea81e71dc3bc8233f8a7d12e7da4409b2d3669778273ac0839bb67f3a5ae51329320de4ee7e8582675abfbe3b17e6edbfbccfc32a

16 lines
662 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.switchScan = void 0;
var switchMap_1 = require("./switchMap");
var lift_1 = require("../util/lift");
function switchScan(accumulator, seed) {
return lift_1.operate(function (source, subscriber) {
var state = seed;
switchMap_1.switchMap(function (value, index) { return accumulator(state, value, index); }, function (_, innerValue) { return ((state = innerValue), innerValue); })(source).subscribe(subscriber);
return function () {
state = null;
};
});
}
exports.switchScan = switchScan;
//# sourceMappingURL=switchScan.js.map