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

popFirst()

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

Declaration 宣言

mutating func popFirst() -> UInt8?

Return Value 戻り値

The first element of the collection if the collection is not empty; otherwise, nil. コレクションが空でないならばコレクションの最初の要素;そうでなければnil

Discussion 議論

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