Collection

extension Collection
  • 安全取指定索引数据

    Declaration

    Swift

    public subscript(safeIndex index: Index) -> Element? { get }
    Parameters
    safeIndex

    指定索引

  • 判断集合非空

    Declaration

    Swift

    public var isNotEmpty: Bool { get }