docs: clang 插件开发

This commit is contained in:
杭城小刘
2024-04-27 13:01:58 +08:00
parent 6e47061735
commit 851797d133
257 changed files with 9060 additions and 239 deletions

29
Chapter1 - iOS/1.129.md Normal file
View File

@@ -0,0 +1,29 @@
# Swift Dictionary 扩容机制
## Dictionary
```swift
let dic = ["d": 4, "a": 1, "b": 2, "c": 3]
print(dic)
// ["c": 3, "d": 4, "a": 1, "b": 2]
```
Dictionary 顺序会乱序
## KeyValuePairs
KeyValuePairs 顺序不会乱序
```swift
let kvs: KeyValuePairs = ["d": 4, "a": 1, "b": 2, "c": 3]
print(kvs)
// ["d": 4, "a": 1, "b": 2, "c": 3]
```
开放寻址法