List operations arise naturally from binary operations using a "reduce" or a "fold" of the operation. For the case of the empty list, reduce should always return the identity element. So:
The sum of an empty list is the identity of addition, being 0.
The product of an empty list is the identity...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.