Contents

removeFirst()

Removes and returns the first element of the collection.

Declaration

@discardableResult mutating func removeFirst() -> Self.Element

Return Value

The first element of the collection.

Discussion

The collection must not be empty.