Is there any simple way to check if two arrays contain the same elements?
Here is my try were I return true
if arrays are not the same:
arr1 := #(1 3 5 6).
arr2 := #(1 2 3 4).
arr2Copy := arr2 copyFrom: 1 to: arr2 size.
arr1 size ~= arr2 size
ifTrue: [^ true].
arr1
do: [:a | (arr2copy removeFirst = a)
ifFalse: [^ true]].
^false