removeFirst
Removes and returns the first element of the CircularBuffer
.
@discardableResult mutating func removeFirst() -> Element
Returns
The removed element.
The CircularBuffer
must not be empty.
Calling this method may invalidate any existing indices for use with this CircularBuffer
.