Are they both of the same size? If yes, you can do...
# codereview
k
Are they both of the same size? If yes, you can do:
Copy code
if ((mylist - myotherlist).isEmpty()) {
  ...
}