This must be an elementary question for the pros but how do I iterate over unique

This must be an elementary question for the pros but how do I iterate over unique

This must be an elementary question for the pros but how do I iterate over unique triplets. E.g. 1:5 triplets would give me (1,1,1), (1,1,2), … (1,2,2), (1,2,3) … but not (1,2,1) because that combination is already covered by (1,1,2)?

Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack , or pinging the poster here on Discourse so they can follow this thread .
(Original message :slack:) (More Info)

You can do unique(Set, x) where x is your iterator of tuples.

2 Likes