TenantAtlas/apps/platform/.pnpm-store/v10/files/1c/d7c79298c26e1fdbab1877e35b5d8126322413e3fc2c9b8fc240f48dd24a61734d13207bbf826f1a10f79de174cf786dee9a2586db319b9840c0ed113a30c8
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

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