@@ -296,7 +296,13 @@ interface IZipOutput<out Common> { val values: List<Common> }
296296interface IZip1Output <out Common , out E1 > : IZipOutput <Common > { val first: E1 }
297297interface IZip2Output <out Common , out E1 , out E2 > : IZip1Output <Common , E1 > { val second: E2 }
298298interface 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+ }
300306interface IZip5Output <out Common , out E1 , out E2 , out E3 , out E4 , out E5 > : IZip4Output <Common , E1 , E2 , E3 , E4 > { val fifth: E5 }
301307interface 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 }
302308interface 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
306312operator fun <T > IZip1Output <* , T >.component1 () = first
307313operator fun <T > IZip2Output <* , * , T >.component2 () = second
308314operator fun <T > IZip3Output <* , * , * , T >.component3 () = third
309- operator fun <T > IZip4Output <* , * , * , * , T >.component4 () = forth
315+ operator fun <T > IZip4Output <* , * , * , * , T >.component4 () = fourth
310316operator fun <T > IZip5Output <* , * , * , * , * , T >.component5 () = fifth
311317operator fun <T > IZip6Output <* , * , * , * , * , * , T >.component6 () = sixth
312318operator 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,
320326 override val first: E1 get() = values[0 ] as E1
321327 override val second: E2 get() = values[1 ] as E2
322328 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
324330 override val fifth: E5 get() = values[4 ] as E5
325331 override val sixth: E6 get() = values[5 ] as E6
326332 override val seventh: E7 get() = values[6 ] as E7
0 commit comments