摘要:
判断是否为空使用的是Collection协议里isEmpty的判断。 public var isEmpty: Bool { return startIndex == endIndex }startIndex 总是返回 0。 public var startIndex: Int { return 0 }endIndex代码如下: @inlinable public va... 阅读全文
posted @ 2019-03-20 22:57
花老🐯
阅读(137)
评论(0)
推荐(0)

浙公网安备 33010602011771号