Open
Description
In generic code the fact that the following operations error:
julia> median(Int[])
ERROR: ArgumentError: median of an empty array is undefined, Int64[]
julia> quantile(Int[], 0.5)
ERROR: ArgumentError: empty data vector
is inconvenient (as the only work-around is try-catch). Maybe we could allow passing default
kwarg that would be returned when the passed collection is empty?
Metadata
Metadata
Assignees
Labels
No labels