Post Reply 
HP49-HP50 : when {list of repeated solutions} —> {list with no rep. sol}
12-22-2022, 05:35 PM
Post: #10
RE: HP49-HP50 : when {list of repeated solutions} —> {list with no rep. sol}
DOSUBS loops over all list objects, and compares it to the previous object.
The very first object doesn't have anything on the stack to compare against, so I place an object on the stack that will never be equal to it: the list itself ;-). So the first object is always kept.
From then on, if they are the same, I drop it, else I keep it.
That, I do with DROPN and the result of SAME, which is 0 or 1.
At the end, DOSUBS wraps up all result objects in a list.
Ah I see I actually still have to DROP the duplicate list from level 2 ;-)

Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP49-HP50 : when {list of repeated solutions} —> {list with no rep. sol} - Werner - 12-22-2022 05:35 PM



User(s) browsing this thread: 1 Guest(s)