Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adienes committed Aug 14, 2023
1 parent 3a0c76b commit b2879af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/iterators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,12 @@ function _zip_min_length(is)
end
end
_zip_min_length(is::Tuple{}) = nothing

# For a collection of iterators `is`, returns a tuple (b, n), where
# `b` is true when every component of `is` has a statically-known finite
# length and all such lengths are equal. Otherwise, `b` is false.
# `n` is an implementation detail, and will be the `length` of the first
# iterator if it is statically-known and finite. Otherwise, `n` is `nothing`.
function _zip_lengths_finite_equal(is)
i = is[1]
b, n = _zip_lengths_finite_equal(tail(is))
Expand Down

0 comments on commit b2879af

Please sign in to comment.