Instance Method インスタンスメソッド

removeFirst()

Removes and returns the first element of the collection. コレクションの最初の要素を削除して返します。

Declaration 宣言

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

Return Value 戻り値

The first element of the collection. コレクションの最初の要素。

Discussion 解説

The collection must not be empty. コレクションは空であってはなりません。

Complexity: O(1) 計算量:O(1)