Removes howMany values at the front or back of the container.
The number of elements removed
Complexity: O(howMany * log(n)).
See Implementation
Removes howMany values at the front or back of the container.