initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
12
node_modules/rxjs/dist/esm5/internal/operators/switchScan.js
generated
vendored
Normal file
12
node_modules/rxjs/dist/esm5/internal/operators/switchScan.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue