Instance Method

removeFirst()

Removes and returns the first element of the collection.

Declaration

@discardableResult mutating func removeFirst() -> Elements.Index

Return Value

The first element of the collection.

Discussion

The collection must not be empty.

Complexity: O(1)