Re: Standard library praise and challenge

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu