Align Base.Generator
, map
. Why Base.IteratorSize(zip()) == Base.IsInfinite()
?
#40756
Milestone
Base.Generator
, map
. Why Base.IteratorSize(zip()) == Base.IsInfinite()
?
#40756
zip
andmap
(which is defined in terms ofzip
, by way ofBase.Generator
) produce results with length equal to the minimum length of the arguments:For
zip
, the minimum length across no iterators is defined as "infinity"https://github.com/JuliaLang/julia/blame/ff001a4e1f5b7f949f5a2328520a7e78bc1957b4/base/iterators.jl#L388
which is the definition consistent with a recursive definition of the minimum (
min(x, infinity) = x
).But I'm not sure why a 1-argument
map
is defined:julia/base/abstractarray.jl
Line 2460 in 27d3931
Related: #39628
The text was updated successfully, but these errors were encountered: