From: Russell E O. <rowen@u.washington.edu> - 2004-05-13 19:23:00
|
At 9:27 AM -0400 2004-05-13, Perry Greenfield wrote: >... One has to trade off the number of such functions >against the speed savings. Another example is getting max and min values >for an array. I've long thought that this is so often done they could >be done in one pass. There isn't a function that does this yet though. Statistics is another area where multiple return values could be of interest -- one may want the mean and std dev, and making two passes is wasteful (since some of the same info needs to be computed both times). A do-all function that computes min, min location, max, max location, mean and std dev all at once would be nice (especially if the returned values were accessed by name, rather than just being a tuple of values, so they could be referenced safely and readably). -- Russell |