Little problem(s) July 2022
|
07-07-2022, 05:27 PM
Post: #26
|
|||
|
|||
RE: Little problem(s) July 2022
My attempt at #3.
I wouldn't even try this without the use of the following ListExt commands: LSUM: basically a slightly faster ΣLIST (and is a heck of lot easier to type ). LPICK: given a list and a corresponding set of indices, returns the values from the original list indicated by those indices. Similar to calling GET for each specified index against the original source list. DOCOMB: generates specified combinations of the provided indices and passes them to a supplied program (similar to DOLIST/DOSUBS, but passes combinations of the elements instead of each element). DOCOMB also has a feature wherein you can tell it to abort further processing by storing something that evaluates to TRUE in the local 'XCMB'. This local is created by DOCOMB automatically and is only available while the command is processing. It is used in this case to only provide the first solution encountered. This will slow down rather noticeably as the list size grows, of course. I believe this will be the case with just about any approach, but I don't assume that the method I've used is necessarily the best or fastest. But I believe it works for this particular situation. Code: \<< |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)