Contents

removeLast()

Removes and returns the last element of the array.

Declaration

@discardableResult mutating func removeLast() -> Element

Return Value

The last element of the original array.

Discussion

The array must not be empty.