Hey I am trying to make a Set of Arrays and the arrays are to hold 2 integers
When I do
var points = Set<Array<Int>>();
I get this error:
Array<Int>
does not conform to protocolhashable
I am trying to store a bunch of points like [x,y] ie. [33, 45]
I don't want to use a 2d array because the order of the points does not matter and I want to be able to remove points by their values (Set.remove[33,45]
)