Function RingBuffer.linearRemove
Removes elements from the buffer.
The argument to this method is a range of elements obtained by using
the slice syntax (e.g. ringbuffer[1 .. 2]
). Note that removing
elements from the middle of an array is a O(n)
operation.