popFirst

    Removes and returns the first element of the CircularBuffer.

    CircularBuffer.swift:540
    mutating func popFirst() -> Element?

    Returns

    The first element of the CircularBuffer if the CircularBuffer is not empty; otherwise, nil.

    Calling this method may invalidate all saved indices of this CircularBuffer. Do not rely on a previously stored index value after altering a CircularBuffer with any operation that can change its length.

    Other members in extension

    Types

    Typealiases

    Type members

    Instance members

    Show implementation details (4)

    Hide implementation details