Re: Standard library praise and challenge
- Posted by SDPringle Sep 18, 2011
- 2907 views
I want to clarify that the special cases for max and min that I described here were not meant to be descriptions of the standard library functions max and min. Rather, what functions with these names in my private library return and what they should return according to my philosophy.
The standard library returns some value for max{} and min{}. It flattens its argument. Meaning max({{24,4},{400}}) is the same as max({24,4,400}) in the standard library.
The ones I developed error out when passed an atom or an empty sequence. It doesn't flatten its argument. You can find a maximum or minimum object of a sequence of elements. The arguments may all be strings or matrices.
My max and min were developed separately before I joined this project and the existing max and mins in the standard library were already there when I joined. AFAIK.
Shawn Pringle