I've been using Advent of Code to teach myself Nim and have reached a question involving overlapping coordinates. If I was doing this in Python, I'd probably construct a tuple for each coordinate and store them in a set so I can do operations like intersections and unions.
I've been trying to do a similar thing in Nim but without much luck. I can't work out what kinds of types I'm allowed to store inside sets, or whether this is possible at all.
I'm guessing that you're probably using a set without any import, which is quite limited.
What yo're looking for are hash sets, available after you import them. Do import sets and then use https://nim-lang.github.io/Nim/sets.html for a guidance how to do stuff you're interested in. (E.g. in python you would use add, here is incl)