frontend/.pnpm-store/v3/files/1c/d7c79298c26e1fdbab1877e35b5d8126322413e3fc2c9b8fc240f48dd24a61734d13207bbf826f1a10f79de174cf786dee9a2586db319b9840c0ed113a30c8

12 lines
512 B
Plaintext

import { switchMap } from './switchMap';
import { operate } from '../util/lift';
export function switchScan(accumulator, seed) {
return operate(function (source, subscriber) {
var state = seed;
switchMap(function (value, index) { return accumulator(state, value, index); }, function (_, innerValue) { return ((state = innerValue), innerValue); })(source).subscribe(subscriber);
return function () {
state = null;
};
});
}
//# sourceMappingURL=switchScan.js.map