On Apr 8, 2021, at 8:16 AM, Barbara Morris <bmorris@xxxxxxxxxx> wrote:
On 2021-04-07 6:30 p.m., Jon Paris wrote:
Simple answer - because they aren't designed to <grin>.
Personally I would have liked to see that but ... If they take an array what are they expected to do. Perhaps if you saw a %Max BIF for an array you might expect it to return the index of the max item - not its value. It would probably be more useful in cases such as DDS arrays.
I suggest that perhaps you write up an RFE for the functionality, post the number here and we can all jump in and vote for it.
There is already an RFE for this. Indeed, the current idea is that it should be a different built-in function that returns the index of the maximum or minimum element.
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.