@@ -1223,6 +1223,40 @@ declare module Immutable {
1223
1223
toSeq ( ) : /*this*/ Seq . Indexed < T >
1224
1224
}
1225
1225
1226
+
1227
+ /**
1228
+ * `Seq` which represents a set of values.
1229
+ *
1230
+ * Because `Seq` are often lazy, `Seq.Set` does not provide the same guarantee
1231
+ * of value uniqueness as the concrete `Set`.
1232
+ */
1233
+ export module Set {
1234
+
1235
+ /**
1236
+ * Returns a Seq.Set of the provided values
1237
+ */
1238
+ function of < T > ( ...values : T [ ] ) : Seq . Set < T > ;
1239
+ }
1240
+
1241
+ /**
1242
+ * Always returns a Seq.Set, discarding associated indices or keys.
1243
+ */
1244
+ export function Set < T > ( ) : Seq . Set < T > ;
1245
+ export function Set < T > ( seq : SetIterable < T > ) : Seq . Set < T > ;
1246
+ export function Set < T > ( seq : IndexedIterable < T > ) : Seq . Set < T > ;
1247
+ export function Set < K , V > ( seq : KeyedIterable < K , V > ) : Seq . Set < /*[K,V]*/ any > ;
1248
+ export function Set < T > ( array : Array < T > ) : Seq . Set < T > ;
1249
+ export function Set < T > ( iterator : Iterator < T > ) : Seq . Set < T > ;
1250
+ export function Set < T > ( iterable : /*Iterable<T>*/ Object ) : Seq . Set < T > ;
1251
+
1252
+ export interface Set < T > extends Seq < T , T > , SetIterable < T > {
1253
+
1254
+ /**
1255
+ * Returns itself
1256
+ */
1257
+ toSeq ( ) : /*this*/ Seq . Set < T >
1258
+ }
1259
+
1226
1260
}
1227
1261
1228
1262
/**
@@ -1312,40 +1346,6 @@ declare module Immutable {
1312
1346
toSeq ( ) : /*this*/ KeyedSeq < K , V >
1313
1347
}
1314
1348
1315
- /**
1316
- * `Seq` which represents a set of values.
1317
- *
1318
- * Because `Seq` are often lazy, `SetSeq` does not provide the same guarantee
1319
- * of value uniqueness as the concrete `Set`.
1320
- */
1321
- export module SetSeq {
1322
-
1323
- /**
1324
- * Returns a SetSeq of the provided values
1325
- */
1326
- function of < T > ( ...values : T [ ] ) : SetSeq < T > ;
1327
- }
1328
-
1329
- /**
1330
- * Always returns a SetSeq, discarding associated indices or keys.
1331
- */
1332
- export function SetSeq < T > ( ) : SetSeq < T > ;
1333
- export function SetSeq < T > ( seq : SetIterable < T > ) : SetSeq < T > ;
1334
- export function SetSeq < T > ( seq : IndexedIterable < T > ) : SetSeq < T > ;
1335
- export function SetSeq < K , V > ( seq : KeyedIterable < K , V > ) : SetSeq < /*[K,V]*/ any > ;
1336
- export function SetSeq < T > ( array : Array < T > ) : SetSeq < T > ;
1337
- export function SetSeq < T > ( iterator : Iterator < T > ) : SetSeq < T > ;
1338
- export function SetSeq < T > ( iterable : /*Iterable<T>*/ Object ) : SetSeq < T > ;
1339
-
1340
- export interface SetSeq < T > extends Seq < T , T > , SetIterable < T > {
1341
-
1342
- /**
1343
- * Returns itself
1344
- */
1345
- toSeq ( ) : /*this*/ SetSeq < T >
1346
- }
1347
-
1348
-
1349
1349
/**
1350
1350
* The `Iterable` is a set of (key, value) entries which can be iterated, and
1351
1351
* is the base class for all collections in `immutable`, allowing them to
@@ -1603,9 +1603,9 @@ declare module Immutable {
1603
1603
toIndexedSeq ( ) : Seq . Indexed < V > ;
1604
1604
1605
1605
/**
1606
- * Returns a SetSeq of the values of this Iterable, discarding keys.
1606
+ * Returns a Seq.Set of the values of this Iterable, discarding keys.
1607
1607
*/
1608
- toSetSeq ( ) : SetSeq < V > ;
1608
+ toSetSeq ( ) : Seq . Set < V > ;
1609
1609
1610
1610
1611
1611
// Iterators
@@ -2401,13 +2401,13 @@ declare module Immutable {
2401
2401
2402
2402
/**
2403
2403
* Set Iterables only represent values. They have no associated keys or
2404
- * indices. Duplicate values are possible in SetSeqs , however the
2404
+ * indices. Duplicate values are possible in Seq.Sets , however the
2405
2405
* concrete `Set` does not allow duplicate values.
2406
2406
*
2407
2407
* Iterable methods on SetIterable such as `map` and `forEach` will provide
2408
2408
* the value as both the first and second arguments to the provided function.
2409
2409
*
2410
- * var seq = SetSeq .of('A', 'B', 'C');
2410
+ * var seq = Seq.Set .of('A', 'B', 'C');
2411
2411
* assert.equal(seq.every((v, k) => v === k), true);
2412
2412
*
2413
2413
*/
@@ -2426,10 +2426,10 @@ declare module Immutable {
2426
2426
export interface SetIterable < T > extends Iterable < T , T > {
2427
2427
2428
2428
/**
2429
- * Returns SetSeq .
2429
+ * Returns Seq.Set .
2430
2430
* @override
2431
2431
*/
2432
- toSeq ( ) : SetSeq < T > ;
2432
+ toSeq ( ) : Seq . Set < T > ;
2433
2433
}
2434
2434
2435
2435
@@ -2491,10 +2491,10 @@ declare module Immutable {
2491
2491
export interface SetCollection < T > extends Collection < T , T > , SetIterable < T > {
2492
2492
2493
2493
/**
2494
- * Returns SetSeq .
2494
+ * Returns Seq.Set .
2495
2495
* @override
2496
2496
*/
2497
- toSeq ( ) : SetSeq < T > ;
2497
+ toSeq ( ) : Seq . Set < T > ;
2498
2498
}
2499
2499
2500
2500
0 commit comments