Repository: JuliaCollections/DataStructures.jl (julia)

Issue:
DataStructures.jl pirates zip()
```
julia> zip()
zip()

julia> using DataStructures

julia> zip()
ERROR: ArgumentError: collection must be non-empty
Stacktrace:
 [1] _findmin(::Tuple{}, ::Colon) at ./array.jl:2201
 [2] findmin(::Tuple{}) at ./array.jl:2195
 [3] DataStructures.ZippedSparseIntSetIterator(; exclude::Tuple{}) at /home/takafumi/.julia/dev/DataStructures/src/sparse_int_set.jl:208
 [4] DataStructures.ZippedSparseIntSetIterator() at /home/takafumi/.julia/dev/DataStructures/src/sparse_int_set.jl:208
 [5] zip(; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/takafumi/.julia/dev/DataStructures/src/sparse_int_set.jl:213
 [6] zip() at /home/takafumi/.julia/dev/DataStructures/src/sparse_int_set.jl:213
 [7] top-level scope at REPL[4]:1

(tmp_y5_3d7e.julia_tmp) pkg> st
Status `/tmp/tmp_y5_3d7e.julia_tmp/Project.toml`
  [864edb3b] DataStructures v0.17.15 `~/.julia/dev/DataStructures`
  [44cfe95a] Pkg
```

Pull request description:
close #621

Patch:
diff --git a/Project.toml b/Project.toml
index 902ffb81b..894589b30 100644
--- a/Project.toml
+++ b/Project.toml
@@ -1,6 +1,6 @@
 name = "DataStructures"
 uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
-version = "0.17.15"
+version = "0.17.16"
 
 [deps]
 InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
diff --git a/src/sparse_int_set.jl b/src/sparse_int_set.jl
index d964fa94d..b0df38430 100644
--- a/src/sparse_int_set.jl
+++ b/src/sparse_int_set.jl
@@ -210,7 +210,9 @@ struct ZippedSparseIntSetIterator{VT,IT}
     end
 end
 
-Base.zip(s::SparseIntSet...;kwargs...) = ZippedSparseIntSetIterator(s...;kwargs...)
+function Base.zip(s0::SparseIntSet, s::SparseIntSet...; kwargs...)
+    return ZippedSparseIntSetIterator(s0, s...; kwargs...)
+end
 
 length(it::ZippedSparseIntSetIterator) = length(it.shortest_set)
 


Test patch:
diff --git a/test/test_sparse_int_set.jl b/test/test_sparse_int_set.jl
index 9947c2efc..b794a2cfd 100644
--- a/test/test_sparse_int_set.jl
+++ b/test/test_sparse_int_set.jl
@@ -185,5 +185,8 @@ import DataStructures: SparseIntSet
 	    end
 	    @test s1 == 4*24
 	end
+        if VERSION >= v"1.1"
+            @test zip() isa Iterators.Zip  # issue 621
+        end
 
 end