BidirectionalCollection

extension BidirectionalCollection
  • Declaration

    Swift

    public var penultimate: Element? { get }

    Return Value

    The second-to-last Element in Array, 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 of self.