JuliaArrays / FillArrays.jl

Julia package for lazily representing matrices filled with a single entry

Home Page:https://juliaarrays.github.io/FillArrays.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect handling of empty arrays in `any`

jishnub opened this issue · comments

julia> any(iszero, Ones(0))
true

This seems wrong, as

julia> Ones(0) == Int[]
true

julia> any(iszero, Int[])
false