You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: ts/core/linq/observable/concatmap.ts
+90-10Lines changed: 90 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ module Rx {
20
20
* @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.
21
21
* @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.
* Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
@@ -40,7 +40,7 @@ module Rx {
40
40
* @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.
41
41
* @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.
* Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
@@ -60,7 +60,7 @@ module Rx {
60
60
* @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.
61
61
* @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.
* Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
@@ -80,7 +80,87 @@ module Rx {
80
80
* @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.
81
81
* @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.
* Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
87
+
*
88
+
* @example
89
+
* var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); });
90
+
* Or:
91
+
* Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
92
+
*
93
+
* var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; });
94
+
* Or:
95
+
* Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence.
96
+
*
97
+
* var res = source.concatMap(Rx.Observable.fromArray([1,2,3]));
98
+
* @param {Function} selector A transform function to apply to each element or an observable sequence to project each element from the
99
+
* source sequence onto which could be either an observable or Promise.
100
+
* @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.
101
+
* @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.
* Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
107
+
*
108
+
* @example
109
+
* var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); });
110
+
* Or:
111
+
* Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
112
+
*
113
+
* var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; });
114
+
* Or:
115
+
* Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence.
116
+
*
117
+
* var res = source.concatMap(Rx.Observable.fromArray([1,2,3]));
118
+
* @param {Function} selector A transform function to apply to each element or an observable sequence to project each element from the
119
+
* source sequence onto which could be either an observable or Promise.
120
+
* @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.
121
+
* @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.
* Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
127
+
*
128
+
* @example
129
+
* var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); });
130
+
* Or:
131
+
* Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
132
+
*
133
+
* var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; });
134
+
* Or:
135
+
* Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence.
136
+
*
137
+
* var res = source.concatMap(Rx.Observable.fromArray([1,2,3]));
138
+
* @param {Function} selector A transform function to apply to each element or an observable sequence to project each element from the
139
+
* source sequence onto which could be either an observable or Promise.
140
+
* @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.
141
+
* @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.
* Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
147
+
*
148
+
* @example
149
+
* var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); });
150
+
* Or:
151
+
* Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
152
+
*
153
+
* var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; });
154
+
* Or:
155
+
* Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence.
156
+
*
157
+
* var res = source.concatMap(Rx.Observable.fromArray([1,2,3]));
158
+
* @param {Function} selector A transform function to apply to each element or an observable sequence to project each element from the
159
+
* source sequence onto which could be either an observable or Promise.
160
+
* @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence.
161
+
* @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.
0 commit comments