Re: Standard library praise and challenge
- Posted by DerekParnell (admin) Sep 14, 2011
- 3213 views
SDPringle said...
Also with this recursing property is sum, product and or_all.
Just like max and min, these also recurse so that for any sequence s, sum(s) has the same value as sum(flatten(s)).
For maths library, maybe this make sense (I'm not fully convinced of that yet, by the way), but it not always the intuitive result. For example, given a list that contains a mixture of numbers and strings, return the sum of that list. Most spreadsheet programs ignore non-numbers in the summing range, so maybe that's what people expect to happen.