Post Reply 
BUG[?]: ΣLIST, ΠLIST with verrrry short lists
12-24-2015, 10:39 AM
Post: #4
RE: BUG[?]: ΣLIST, ΠLIST with verrrry short lists
(12-24-2015 03:08 AM)Claudio L. Wrote:  ... The first case is not a bug. Sum of an empty list is not defined, as the list could contain things other than numbers. Think of a list of strings, where the sum would concatenate them. In that case, an empty list should mean an empty string ""...

In the second case, I agree the product of a 1-value list should be that value. An empty list is again a gray area. I think undefined answer is better than an arbitrary number 1.
You are right. I was thinkink about numbers only which was my mistake.

Prime, 15C CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: BUG[?]: ΣLIST, ΠLIST with verrrry short lists - chromos - 12-24-2015 10:39 AM



User(s) browsing this thread: 1 Guest(s)