Collection
extension Collection
-
安全取指定索引数据
Declaration
Swift
public subscript(safeIndex index: Index) -> Element? { get }Parameters
safeIndex指定索引
-
判断集合非空
Declaration
Swift
public var isNotEmpty: Bool { get }
View on GitHub
Collection Extension Reference