# Swift

- [1.基础部分](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/1.-ji-chu-bu-fen.md)
- [常量和变量以及基本类型\_1](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/1.-ji-chu-bu-fen/1.-chang-liang-he-bian-liang-yi-ji-ji-ben-lei-xing-1.md)
- [常量和变量以及基本类型\_2](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/1.-ji-chu-bu-fen/2.-chang-liang-he-bian-liang-yi-ji-ji-ben-lei-xing-2.md)
- [2.基本运算符](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/2.-ji-ben-yun-suan-fu.md)
- [基本运算符](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/2.-ji-ben-yun-suan-fu/1.-ji-ben-yun-suan-fu.md)
- [3.字符串和字符](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/3.-zi-fu-chuan-he-zi-fu.md)
- [字符串](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/3.-zi-fu-chuan-he-zi-fu/1.-zi-fu-chuan.md)
- [字符串操作](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/3.-zi-fu-chuan-he-zi-fu/2.-zi-fu-chuan-cao-zuo.md)
- [4.集合类型](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/4.-ji-he-lei-xing.md)
- [概述](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/4.-ji-he-lei-xing/1.-gai-shu.md)
- [Array](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/4.-ji-he-lei-xing/2.array.md)
- [Set](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/4.-ji-he-lei-xing/3.set.md)
- [Dictionary](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/4.-ji-he-lei-xing/4.dictionary.md)
- [6.函数](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/6.-han-shu.md)
- [函数](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/6.-han-shu/1.-han-shu.md)
- [函数返回值](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/6.-han-shu/2.-han-shu-fan-hui-zhi.md)
- [函数类型](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/6.-han-shu/3.-han-shu-lei-xing.md)
- [7.闭包](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/7.-bi-bao.md)
- [闭包](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/7.-bi-bao/1.-bi-bao.md)
- [闭包表达式](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/7.-bi-bao/2.-bi-bao-biao-da-shi.md)
- [尾随闭包](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/7.-bi-bao/3.-wei-sui-bi-bao.md)
- [捕获变量或常量](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/7.-bi-bao/4.-bu-huo-bian-liang-huo-chang-liang.md)
- [闭包是引用类型](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/7.-bi-bao/5.-bi-bao-shi-yin-yong-lei-xing.md)
- [逃逸闭包](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/7.-bi-bao/6.-tao-yi-bi-bao.md)
- [自动闭包](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/7.-bi-bao/7.-zi-dong-bi-bao.md)
- [8.枚举](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/8.-mei-ju.md)
- [枚举](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/8.-mei-ju/1.-mei-ju.md)
- [枚举与switch语句](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/8.-mei-ju/2.-mei-ju-yu-switch-yu-ju.md)
- [9.类和结构体](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/9.-lei-he-jie-gou-ti.md)
- [类和结构体](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/9.-lei-he-jie-gou-ti/1.-lei-he-jie-gou-ti.md)
- [属性](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/9.-lei-he-jie-gou-ti/shu-xing.md)
- [属性](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/9.-lei-he-jie-gou-ti/shu-xing/2.1-shu-xing.md)
- [属性观察器](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/9.-lei-he-jie-gou-ti/shu-xing/2.2-shu-xing-guan-cha-qi.md)
- [属性包装器](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/9.-lei-he-jie-gou-ti/shu-xing/2.3-shu-xing-bao-zhuang-qi.md)
- [全局变量和局部变量](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/9.-lei-he-jie-gou-ti/shu-xing/2.4-quan-ju-bian-liang-he-ju-bu-bian-liang.md)
- [类属性](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/9.-lei-he-jie-gou-ti/shu-xing/2.5-lei-shu-xing.md)
- [方法](https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift/9.-lei-he-jie-gou-ti/fang-fa.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.existorlive.cn/kai-fa-yu-yan-xue-xi/swift.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
