BidirectionalCollection
extension BidirectionalCollection
-
Declaration
Swift
public var penultimate: Element? { get }
Return Value
The second-to-last
Element
inArray
, if not empty. Otherwise,nil
. -
Declaration
Swift
public func last(amount: Int) -> SubSequence?
Return Value
An array with the given
amount
of elements from the end ofself
.