removeFirst

Removes and returns the first element of the CircularBuffer.

CircularBuffer.swift:627
@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.