Those two methods are from AnyRandomAccessCollection
which Array conforms to.
popLast
returns nil
if the collection is empty.
removeLast
crashes if the collection is empty. It also has a discardable result.
Those two methods are from AnyRandomAccessCollection
which Array conforms to.
popLast
returns nil
if the collection is empty.
removeLast
crashes if the collection is empty. It also has a discardable result.