@@ -296,7 +296,13 @@ interface IZipOutput<out Common> { val values: List<Common> }
296
296
interface IZip1Output <out Common , out E1 > : IZipOutput <Common > { val first: E1 }
297
297
interface IZip2Output <out Common , out E1 , out E2 > : IZip1Output <Common , E1 > { val second: E2 }
298
298
interface IZip3Output <out Common , out E1 , out E2 , out E3 > : IZip2Output <Common , E1 , E2 > { val third: E3 }
299
- interface IZip4Output <out Common , out E1 , out E2 , out E3 , out E4 > : IZip3Output <Common , E1 , E2 , E3 > { val forth: E4 }
299
+ interface IZip4Output <out Common , out E1 , out E2 , out E3 , out E4 > : IZip3Output <Common , E1 , E2 , E3 > {
300
+ val fourth: E4
301
+
302
+ @Deprecated(" Use fourth, the version without typo" , ReplaceWith (" fourth" ))
303
+ val forth
304
+ get() = fourth
305
+ }
300
306
interface IZip5Output <out Common , out E1 , out E2 , out E3 , out E4 , out E5 > : IZip4Output <Common , E1 , E2 , E3 , E4 > { val fifth: E5 }
301
307
interface IZip6Output <out Common , out E1 , out E2 , out E3 , out E4 , out E5 , out E6 > : IZip5Output <Common , E1 , E2 , E3 , E4 , E5 > { val sixth: E6 }
302
308
interface IZip7Output <out Common , out E1 , out E2 , out E3 , out E4 , out E5 , out E6 , out E7 > : IZip6Output <Common , E1 , E2 , E3 , E4 , E5 , E6 > { val seventh: E7 }
@@ -306,7 +312,7 @@ interface IZip9Output<out Common, out E1, out E2, out E3, out E4, out E5, out E6
306
312
operator fun <T > IZip1Output <* , T >.component1 () = first
307
313
operator fun <T > IZip2Output <* , * , T >.component2 () = second
308
314
operator fun <T > IZip3Output <* , * , * , T >.component3 () = third
309
- operator fun <T > IZip4Output <* , * , * , * , T >.component4 () = forth
315
+ operator fun <T > IZip4Output <* , * , * , * , T >.component4 () = fourth
310
316
operator fun <T > IZip5Output <* , * , * , * , * , T >.component5 () = fifth
311
317
operator fun <T > IZip6Output <* , * , * , * , * , * , T >.component6 () = sixth
312
318
operator fun <T > IZip7Output <* , * , * , * , * , * , * , T >.component7 () = seventh
@@ -320,7 +326,7 @@ data class ZipOutput<out Common, out E1, out E2, out E3, out E4, out E5, out E6,
320
326
override val first: E1 get() = values[0 ] as E1
321
327
override val second: E2 get() = values[1 ] as E2
322
328
override val third: E3 get() = values[2 ] as E3
323
- override val forth : E4 get() = values[3 ] as E4
329
+ override val fourth : E4 get() = values[3 ] as E4
324
330
override val fifth: E5 get() = values[4 ] as E5
325
331
override val sixth: E6 get() = values[5 ] as E6
326
332
override val seventh: E7 get() = values[6 ] as E7
0 commit comments