Available when Base conforms to BidirectionalCollection and Base.Element conforms to BidirectionalCollection.BaseがBidirectionalCollectionに準拠するそしてBase.ElementがBidirectionalCollectionに準拠する時に利用可能です。
Discussion
解説
If the collection is empty, the value of this property is nil.
コレクションが空であるならば、このプロパティはnilです。
let numbers = [10, 20, 30, 40, 50]iflet lastNumber = numbers.last {print(lastNumber)}// Prints "50"