I have a multidimensional array in swift like this:
arr = [[1,2],[1,2],[3,4],[3,4],[4,5]]
How do I remove duplicates from this array so that my final array is:
[[1,2],[3,4],[4,5]]
I'm a swift newbie. I know I can write a function to remove the dupes, but I wanted to know if there was a way to do this directly.