where did _ArrayType go in Swift 3?

让人想犯罪 __ 提交于 2019-12-11 02:25:33

问题


I have some code that used to relay on _ArrayType in pre Swift 3. I am trying to understand what happened to public protocol _ArrayType.

Any idea?


回答1:


_ArrayType was renamed _ArrayProtocol. You can see this in the ArrayType.swift file and this commit.

internal protocol _ArrayProtocol
  : RangeReplaceableCollection,
    ExpressibleByArrayLiteral
{
    // ...
}


来源:https://stackoverflow.com/questions/39708106/where-did-arraytype-go-in-swift-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!