简体   繁体   中英

where did _ArrayType go in Swift 3?

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?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM