找不到Swift dictionary“keys”属性的内部实现吗

时间:2022-03-16 21:03:08

I'm currently studying Dictionary in Swift and am particularly interested in how

我目前正在快速学习字典,我对如何学习特别感兴趣

找不到Swift dictionary“keys”属性的内部实现吗

is implemented internally. I looked at Swift's GitHub project but could not find the page for Swift's dictionary type.

内部实现。我查看了Swift的GitHub项目,但找不到Swift字典类型的页面。

1 个解决方案

#1


1  

The implementation of Dictionary.keys can currently be found in HashedCollections.swift.gyb.

字典的实现。现在可以在hashedcollection .swift.gyb中找到键。

#1


1  

The implementation of Dictionary.keys can currently be found in HashedCollections.swift.gyb.

字典的实现。现在可以在hashedcollection .swift.gyb中找到键。