Skip to content

Commit 0f9d69a

Browse files
committed
Unpirate zip()
1 parent 3814ac6 commit 0f9d69a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/sparse_int_set.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ struct ZippedSparseIntSetIterator{VT,IT}
210210
end
211211
end
212212

213-
Base.zip(s::SparseIntSet...;kwargs...) = ZippedSparseIntSetIterator(s...;kwargs...)
213+
Base.zip(s0::SparseIntSet, s::SparseIntSet...; kwargs...) =
214+
ZippedSparseIntSetIterator(s0, s...; kwargs...)
214215

215216
length(it::ZippedSparseIntSetIterator) = length(it.shortest_set)
216217

test/test_sparse_int_set.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,6 @@ import DataStructures: SparseIntSet
185185
end
186186
@test s1 == 4*24
187187
end
188+
@test zip() isa Iterators.Zip # issue 621
188189

189190
end

0 commit comments

Comments
 (0)