There was a question like this: how to remove negative copies of numbers from an array in the shortest way in ruby .
For example, we have an array [1, 2, 5, -5, -6]
Here -5 is a duplicate minus duplicate 5. On the same example, we get [1, 2, 5, -6]