Collection

public extension Collection
public extension Collection where Self.Index == Int
  • Returns the element at the specified index iff it is within bounds, otherwise nil.

    Declaration

    Swift

    subscript(safe index: Index) -> Element? { get }

Available where Self.Index == Int

  • Undocumented

    Declaration

    Swift

    func clipped(toMaxLength maxLength: Int) -> [Element]