Julia Programming Language
Sum(i for i in Vector{Int}()) raises error instead of returning 0?
General Usage
question
,
proposal
e3c6
June 25, 2018, 11:15am
8
https://github.com/JuliaLang/julia/issues/27766
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Should empty sum (and product) be defined?
Internals & Design
2
781
February 3, 2017
Understanding 'MethodError'
New to Julia
question
6
689
February 9, 2017
Sum of empty list comprehension
New to Julia
5
2881
October 23, 2018
Inconsistency between zero(x) and zero(T::Type) for matrices
Internals & Design
6
461
April 6, 2022
Inconsistency in `sum` of an empty generator
Internals & Design
generator
,
sum
5
795
November 2, 2022