× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



+1 on the array argument - or maybe a list of values? Can a BIF have a ... parameter kind of thing? The min() and max() I saw in C++ could do that - now they seemed to be implemented as macros, but I could be far off.

Vern

On 8/24/2016 3:36 PM, Barbara Morris wrote:
On 8/23/2016 11:20 AM, John Yeung wrote:

[1]Though I noticed that it didn't explicitly mention the case where
the first and only argument is an array, in which case it should
return the appropriate element of the array. I think it should be able
to handle that as well as the described variable number of atomic
arguments, right? Or would there need to be another set of BIFs, like
%ARRAYMAX and %ARRAYMIN?


Seems reasonable to me that %MAX and %MIN could also have a single array argument. The great thing about built-in functions is that they can easily have different behaviour depending on the arguments.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.