Re: Idea submitted: Built in function to subset an array using a procedure to filter
David Gibbs via RPG400-L <[email protected]>
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <CAEStNXmhiNqbt8r5GDfnZjENApKysxnzGjLgN0SJbuAyP85UrQ@mail.gmail.com> |
On Mon, Nov 10, 2025 at 3:47 PM David Gibbs <[email protected]> wrote: > Alternatively, some kind of utility like qsort that takes two arrays and a > procptr to filter the entries > > Hmmm ... I wonder how hard that kind of thing would be to write in RPG? > > OK, I put together a generic procedure with an example that should do what I'm looking for. https://gist.github.com/fallingrock/13f59a521d10ea6928e3661aafb008f9 I'm interested in comments, suggestions, etc. David -- IBM i on Power Systems: For when you can't afford to be out of business! I'm riding in the American Diabetes Association's Tour de Cure to raise money for diabetes research, education, advocacy, and awareness. You can make a tax-deductible donation to my ride by visiting https://mideml.diabetessucks.net. I may have diabetes, but diabetes doesn't have me! -- This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/rpg400-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l. Please contact [email protected] for any subscription related questions.