diff --git a/RxSwift/Observables/Implementations/Zip+arity.swift b/RxSwift/Observables/Implementations/Zip+arity.swift index 7d70640a..52ffe35e 100644 --- a/RxSwift/Observables/Implementations/Zip+arity.swift +++ b/RxSwift/Observables/Implementations/Zip+arity.swift @@ -21,7 +21,7 @@ Merges the specified observable sequences into one observable sequence by using - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ @warn_unused_result(message="http://git.io/rxs.uo") -public func zip +public func zip (source1: O1, _ source2: O2, resultSelector: (O1.E, O2.E) throws -> R) -> Observable { return Zip2( @@ -110,7 +110,7 @@ Merges the specified observable sequences into one observable sequence by using - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ @warn_unused_result(message="http://git.io/rxs.uo") -public func zip +public func zip (source1: O1, _ source2: O2, _ source3: O3, resultSelector: (O1.E, O2.E, O3.E) throws -> R) -> Observable { return Zip3( @@ -207,7 +207,7 @@ Merges the specified observable sequences into one observable sequence by using - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ @warn_unused_result(message="http://git.io/rxs.uo") -public func zip +public func zip (source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, resultSelector: (O1.E, O2.E, O3.E, O4.E) throws -> R) -> Observable { return Zip4( @@ -312,7 +312,7 @@ Merges the specified observable sequences into one observable sequence by using - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ @warn_unused_result(message="http://git.io/rxs.uo") -public func zip +public func zip (source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, resultSelector: (O1.E, O2.E, O3.E, O4.E, O5.E) throws -> R) -> Observable { return Zip5( @@ -425,7 +425,7 @@ Merges the specified observable sequences into one observable sequence by using - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ @warn_unused_result(message="http://git.io/rxs.uo") -public func zip +public func zip (source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, resultSelector: (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E) throws -> R) -> Observable { return Zip6( @@ -546,7 +546,7 @@ Merges the specified observable sequences into one observable sequence by using - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ @warn_unused_result(message="http://git.io/rxs.uo") -public func zip +public func zip (source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, resultSelector: (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E) throws -> R) -> Observable { return Zip7( @@ -675,7 +675,7 @@ Merges the specified observable sequences into one observable sequence by using - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ @warn_unused_result(message="http://git.io/rxs.uo") -public func zip +public func zip (source1: O1, _ source2: O2, _ source3: O3, _ source4: O4, _ source5: O5, _ source6: O6, _ source7: O7, _ source8: O8, resultSelector: (O1.E, O2.E, O3.E, O4.E, O5.E, O6.E, O7.E, O8.E) throws -> R) -> Observable { return Zip8( diff --git a/RxSwift/Observables/Implementations/Zip+arity.tt b/RxSwift/Observables/Implementations/Zip+arity.tt index c16b8418..59c9b984 100644 --- a/RxSwift/Observables/Implementations/Zip+arity.tt +++ b/RxSwift/Observables/Implementations/Zip+arity.tt @@ -19,7 +19,7 @@ Merges the specified observable sequences into one observable sequence by using - returns: An observable sequence containing the result of combining elements of the sources using the specified result selector function. */ @warn_unused_result(message="http://git.io/rxs.uo") -public func zip<<%= (Array(1...i).map { "O\($0): ObservableConvertibleType" }).joinWithSeparator(", ") %>, R> +public func zip<<%= (Array(1...i).map { "O\($0): ObservableType" }).joinWithSeparator(", ") %>, R> (<%= (Array(1...i).map { "source\($0): O\($0)" }).joinWithSeparator(", _ ") %>, resultSelector: (<%= (Array(1...i).map { "O\($0).E" }).joinWithSeparator(", ") %>) throws -> R) -> Observable { return Zip<%= i %>(