问题
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