@@ -883,36 +883,7 @@ declare module Immutable {
883
883
* ```
884
884
*/
885
885
zip < U > ( other : Collection < any , U > ) : List < [ T , U ] > ;
886
-
887
- /**
888
- * Returns a List "zipped" with the provided collection.
889
- *
890
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
891
- * <!-- runkit:activate
892
- * { "preamble": "const { List } = require(\"immutable\");" }
893
- * -->
894
- * ```js
895
- * const a = List([ 1, 2, 3 ]);
896
- * const b = List([ 4, 5, 6 ]);
897
- * const c = a.zip(b); // List [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
898
- * ```
899
- */
900
886
zip < U , V > ( other : Collection < any , U > , other2 : Collection < any , V > ) : List < [ T , U , V ] > ;
901
-
902
- /**
903
- * Returns a List "zipped" with the provided collections.
904
- *
905
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
906
- *
907
- * <!-- runkit:activate
908
- * { "preamble": "const { List } = require(\"immutable\");" }
909
- * -->
910
- * ```js
911
- * const a = List([ 1, 2, 3 ]);
912
- * const b = List([ 4, 5, 6 ]);
913
- * const c = a.zip(b); // List [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
914
- * ```
915
- */
916
887
zip ( ...collections : Array < Collection < any , any > > ) : List < any > ;
917
888
918
889
/**
@@ -930,6 +901,8 @@ declare module Immutable {
930
901
* const c = a.zipAll(b); // List [ [ 1, 3 ], [ 2, 4 ], [ undefined, 5 ] ]
931
902
* ```
932
903
*/
904
+ zipAll < U > ( other : Collection < any , U > ) : List < [ T , U ] > ;
905
+ zipAll < U , V > ( other : Collection < any , U > , other2 : Collection < any , V > ) : List < [ T , U , V ] > ;
933
906
zipAll ( ...collections : Array < Collection < any , any > > ) : List < any > ;
934
907
935
908
/**
@@ -2048,8 +2021,6 @@ declare module Immutable {
2048
2021
* Returns an OrderedSet of the same type "zipped" with the provided
2049
2022
* collections.
2050
2023
*
2051
- * @see IndexedIterator.zip
2052
- *
2053
2024
* Like `zipWith`, but using the default `zipper`: creating an `Array`.
2054
2025
*
2055
2026
* ```js
@@ -2060,47 +2031,13 @@ declare module Immutable {
2060
2031
* ```
2061
2032
*/
2062
2033
zip < U > ( other : Collection < any , U > ) : OrderedSet < [ T , U ] > ;
2063
-
2064
- /**
2065
- * Returns an OrderedSet of the same type "zipped" with the provided
2066
- * collections.
2067
- *
2068
- * @see IndexedIterator.zip
2069
- *
2070
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
2071
- *
2072
- * ```js
2073
- * const a = OrderedSet([ 1, 2, 3 ])
2074
- * const b = OrderedSet([ 4, 5, 6 ])
2075
- * const c = a.zip(b)
2076
- * // OrderedSet [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
2077
- * ```
2078
- */
2079
2034
zip < U , V > ( other1 : Collection < any , U > , other2 : Collection < any , V > ) : OrderedSet < [ T , U , V ] > ;
2080
-
2081
- /**
2082
- * Returns an OrderedSet of the same type "zipped" with the provided
2083
- * collections.
2084
- *
2085
- * @see IndexedIterator.zip
2086
- *
2087
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
2088
- *
2089
- * ```js
2090
- * const a = OrderedSet([ 1, 2, 3 ])
2091
- * const b = OrderedSet([ 4, 5, 6 ])
2092
- * const c = a.zip(b)
2093
- * // OrderedSet [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
2094
- * ```
2095
- */
2096
2035
zip ( ...collections : Array < Collection < any , any > > ) : OrderedSet < any > ;
2097
2036
2098
2037
/**
2099
2038
* Returns a OrderedSet of the same type "zipped" with the provided
2100
2039
* collections.
2101
2040
*
2102
- * @see IndexedIterator.zipAll
2103
- *
2104
2041
* Unlike `zip`, `zipAll` continues zipping until the longest collection is
2105
2042
* exhausted. Missing values from shorter collections are filled with `undefined`.
2106
2043
*
@@ -2110,13 +2047,15 @@ declare module Immutable {
2110
2047
* const c = a.zipAll(b); // OrderedSet [ [ 1, 3 ], [ 2, 4 ], [ undefined, 5 ] ]
2111
2048
* ```
2112
2049
*/
2050
+ zipAll < U > ( other : Collection < any , U > ) : OrderedSet < [ T , U ] > ;
2051
+ zipAll < U , V > ( other1 : Collection < any , U > , other2 : Collection < any , V > ) : OrderedSet < [ T , U , V ] > ;
2113
2052
zipAll ( ...collections : Array < Collection < any , any > > ) : OrderedSet < any > ;
2114
2053
2115
2054
/**
2116
2055
* Returns an OrderedSet of the same type "zipped" with the provided
2117
2056
* collections by using a custom `zipper` function.
2118
2057
*
2119
- * @see IndexedIterator .zipWith
2058
+ * @see Seq.Indexed .zipWith
2120
2059
*/
2121
2060
zipWith < U , Z > (
2122
2061
zipper : ( value : T , otherValue : U ) => Z ,
@@ -2331,31 +2270,7 @@ declare module Immutable {
2331
2270
* ```
2332
2271
*/
2333
2272
zip < U > ( other : Collection < any , U > ) : Stack < [ T , U ] > ;
2334
-
2335
- /**
2336
- * Returns a Stack "zipped" with the provided collections.
2337
- *
2338
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
2339
- *
2340
- * ```js
2341
- * const a = Stack([ 1, 2, 3 ]);
2342
- * const b = Stack([ 4, 5, 6 ]);
2343
- * const c = a.zip(b); // Stack [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
2344
- * ```
2345
- */
2346
2273
zip < U , V > ( other : Collection < any , U > , other2 : Collection < any , V > ) : Stack < [ T , U , V ] > ;
2347
-
2348
- /**
2349
- * Returns a Stack "zipped" with the provided collections.
2350
- *
2351
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
2352
- *
2353
- * ```js
2354
- * const a = Stack([ 1, 2, 3 ]);
2355
- * const b = Stack([ 4, 5, 6 ]);
2356
- * const c = a.zip(b); // Stack [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
2357
- * ```
2358
- */
2359
2274
zip ( ...collections : Array < Collection < any , any > > ) : Stack < any > ;
2360
2275
2361
2276
/**
@@ -2370,6 +2285,8 @@ declare module Immutable {
2370
2285
* const c = a.zipAll(b); // Stack [ [ 1, 3 ], [ 2, 4 ], [ undefined, 5 ] ]
2371
2286
* ```
2372
2287
*/
2288
+ zipAll < U > ( other : Collection < any , U > ) : Stack < [ T , U ] > ;
2289
+ zipAll < U , V > ( other : Collection < any , U > , other2 : Collection < any , V > ) : Stack < [ T , U , V ] > ;
2373
2290
zipAll ( ...collections : Array < Collection < any , any > > ) : Stack < any > ;
2374
2291
2375
2292
/**
@@ -2906,31 +2823,7 @@ declare module Immutable {
2906
2823
* ```
2907
2824
*/
2908
2825
zip < U > ( other : Collection < any , U > ) : Seq . Indexed < [ T , U ] > ;
2909
-
2910
- /**
2911
- * Returns a Seq "zipped" with the provided collections.
2912
- *
2913
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
2914
- *
2915
- * ```js
2916
- * const a = Seq([ 1, 2, 3 ]);
2917
- * const b = Seq([ 4, 5, 6 ]);
2918
- * const c = a.zip(b); // Seq [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
2919
- * ```
2920
- */
2921
2826
zip < U , V > ( other : Collection < any , U > , other2 : Collection < any , V > ) : Seq . Indexed < [ T , U , V ] > ;
2922
-
2923
- /**
2924
- * Returns a Seq "zipped" with the provided collections.
2925
- *
2926
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
2927
- *
2928
- * ```js
2929
- * const a = Seq([ 1, 2, 3 ]);
2930
- * const b = Seq([ 4, 5, 6 ]);
2931
- * const c = a.zip(b); // Seq [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
2932
- * ```
2933
- */
2934
2827
zip ( ...collections : Array < Collection < any , any > > ) : Seq . Indexed < any > ;
2935
2828
2936
2829
/**
@@ -2945,6 +2838,8 @@ declare module Immutable {
2945
2838
* const c = a.zipAll(b); // Seq [ [ 1, 3 ], [ 2, 4 ], [ undefined, 5 ] ]
2946
2839
* ```
2947
2840
*/
2841
+ zipAll < U > ( other : Collection < any , U > ) : Seq . Indexed < [ T , U ] > ;
2842
+ zipAll < U , V > ( other : Collection < any , U > , other2 : Collection < any , V > ) : Seq . Indexed < [ T , U , V ] > ;
2948
2843
zipAll ( ...collections : Array < Collection < any , any > > ) : Seq . Indexed < any > ;
2949
2844
2950
2845
/**
@@ -3525,33 +3420,7 @@ declare module Immutable {
3525
3420
* ```
3526
3421
*/
3527
3422
zip < U > ( other : Collection < any , U > ) : Collection . Indexed < [ T , U ] > ;
3528
-
3529
- /**
3530
- * Returns a Collection of the same type "zipped" with the provided
3531
- * collections.
3532
- *
3533
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
3534
- *
3535
- * ```js
3536
- * const a = List([ 1, 2, 3 ]);
3537
- * const b = List([ 4, 5, 6 ]);
3538
- * const c = a.zip(b); // List [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
3539
- * ```
3540
- */
3541
3423
zip < U , V > ( other : Collection < any , U > , other2 : Collection < any , V > ) : Collection . Indexed < [ T , U , V ] > ;
3542
-
3543
- /**
3544
- * Returns a Collection of the same type "zipped" with the provided
3545
- * collections.
3546
- *
3547
- * Like `zipWith`, but using the default `zipper`: creating an `Array`.
3548
- *
3549
- * ```js
3550
- * const a = List([ 1, 2, 3 ]);
3551
- * const b = List([ 4, 5, 6 ]);
3552
- * const c = a.zip(b); // List [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ]
3553
- * ```
3554
- */
3555
3424
zip ( ...collections : Array < Collection < any , any > > ) : Collection . Indexed < any > ;
3556
3425
3557
3426
/**
@@ -3566,6 +3435,8 @@ declare module Immutable {
3566
3435
* const c = a.zipAll(b); // List [ [ 1, 3 ], [ 2, 4 ], [ undefined, 5 ] ]
3567
3436
* ```
3568
3437
*/
3438
+ zipAll < U > ( other : Collection < any , U > ) : Collection . Indexed < [ T , U ] > ;
3439
+ zipAll < U , V > ( other : Collection < any , U > , other2 : Collection < any , V > ) : Collection . Indexed < [ T , U , V ] > ;
3569
3440
zipAll ( ...collections : Array < Collection < any , any > > ) : Collection . Indexed < any > ;
3570
3441
3571
3442
/**
0 commit comments