The Vec equality operator should:
-
Check to see if mySize is the same as the size of v2.
If not, the two vectors are not the same size, so return false.
- Compare each itemi in myArray to
each itemi from v2's array:
If any are not equal, return false.
- The two arrays are equal in size, and all their values are the same, so return true.