aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js b/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js
new file mode 100644
index 0000000..a8d7bc7
--- /dev/null
+++ b/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js
@@ -0,0 +1,12 @@
+import { operate } from '../util/lift';
+import { mergeInternals } from './mergeInternals';
+export function mergeScan(accumulator, seed, concurrent) {
+ if (concurrent === void 0) { concurrent = Infinity; }
+ return operate(function (source, subscriber) {
+ var state = seed;
+ return mergeInternals(source, subscriber, function (value, index) { return accumulator(state, value, index); }, concurrent, function (value) {
+ state = value;
+ }, false, undefined, function () { return (state = null); });
+ });
+}
+//# sourceMappingURL=mergeScan.js.map \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage