You don’t though. You can have a Set{NTuple{2, Vector{Int}}} and just put the two arrays in there (like what was said in Hashing tuples of tuples is seemingly very slow - #2 by Skoffer). That’s e.g. what I did for advent of code. Just don’t mutate them after you put them into the set.
2 Likes