d7c79298c26e1fdbab1877e35b5d8126322413e3fc2c9b8fc240f48dd24a61734d13207bbf826f1a10f79de174cf786dee9a2586db319b9840c0ed113a30c8 512 B

123456789101112
  1. import { switchMap } from './switchMap';
  2. import { operate } from '../util/lift';
  3. export function switchScan(accumulator, seed) {
  4. return operate(function (source, subscriber) {
  5. var state = seed;
  6. switchMap(function (value, index) { return accumulator(state, value, index); }, function (_, innerValue) { return ((state = innerValue), innerValue); })(source).subscribe(subscriber);
  7. return function () {
  8. state = null;
  9. };
  10. });
  11. }
  12. //# sourceMappingURL=switchScan.js.map