|
1 | 1 | # This file is a part of Julia. License is MIT: http://julialang.org/license
|
2 | 2 |
|
3 |
| -isempty(itr) = done(itr, start(itr)) |
4 |
| - |
5 | 3 | _min_length(a, b, ::IsInfinite, ::IsInfinite) = min(length(a),length(b)) # inherit behaviour, error
|
6 | 4 | _min_length(a, b, A, ::IsInfinite) = length(a)
|
7 | 5 | _min_length(a, b, ::IsInfinite, B) = length(b)
|
@@ -143,11 +141,6 @@ zip(a, b, c...) = Zip(a, zip(b, c...))
|
143 | 141 | length(z::Zip) = _min_length(z.a, z.z, iteratorsize(z.a), iteratorsize(z.z))
|
144 | 142 | size(z::Zip) = promote_shape(size(z.a), size(z.z))
|
145 | 143 | indices(z::Zip) = promote_shape(indices(z.a), indices(z.z))
|
146 |
| -tuple_type_cons{S}(::Type{S}, ::Type{Union{}}) = Union{} |
147 |
| -function tuple_type_cons{S,T<:Tuple}(::Type{S}, ::Type{T}) |
148 |
| - @_pure_meta |
149 |
| - Tuple{S, T.parameters...} |
150 |
| -end |
151 | 144 | eltype{I,Z}(::Type{Zip{I,Z}}) = tuple_type_cons(eltype(I), eltype(Z))
|
152 | 145 | @inline start(z::Zip) = tuple(start(z.a), start(z.z))
|
153 | 146 | @inline function next(z::Zip, st)
|
|
0 commit comments