Closed pescuma closed 2 years ago
And return 0 in that case. That makes sense if you think as sum as fold(0, (v,e) => v+e). Also, the code seems to supports that already, except for the exception in the beginning.
And return 0 in that case. That makes sense if you think as sum as fold(0, (v,e) => v+e). Also, the code seems to supports that already, except for the exception in the beginning.