Question. How do you filter based on other items in a list?
I got a list that looks like
List((2,2),(2,1),(3,1),....)
I want to keep the ones that got the biggest numbers when they got the same first
so something like this in output
List((2,2),(3,1),...)
with (2,1) removed since 1 was <then 2 in (2,2)
so i need to filter based on other objects in the list how you do it.
Efficiency is not very important as the list received a maximum of 171 items
source share