diff --git a/README.md b/README.md index c03b864a..cdda0a3f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ 中文版Apple官方Swift教程《The Swift Programming Language》 +中文Swift社区[Swiftist](http://swiftist.org/),新社区,正在建设中,感兴趣的朋友可以一起参与进来。 + # 在线阅读 使用Gitbook制作,可以直接[在线阅读](http://numbbbbb.github.io/the-swift-programming-language-in-chinese/)。 @@ -10,37 +12,37 @@ # 翻译进度 -> 说明:翻译中表示只完成了一部分,你可以接着翻译剩下的部分。不过要及时pr,避免两个人重复翻译同一部分。 +> 说明:翻译之前请先到PR列表中查看别人认领的内容,尽量不要重复,谢谢! * 欢迎使用 Swift - * 关于 Swift(完成) - * Swift 初见(完成) + * 关于 Swift(完成 By numbbbbb) + * Swift 初见(完成 By numbbbbb) * Swift 教程 * 基础部分(翻译中) - * 基本操作符 - * 字符串和字符(完成) - * 集合类型 - * 控制流 - * 函数(翻译中) - * 闭包 + * 基本操作符(@xielingwang 认领) + * 字符串和字符(完成 By @wh1100717) + * 集合类型(@WilliamZang 认领) + * 控制流(@vclwei 认领) + * 函数(@honghaoz 认领) + * 闭包(完成 By @wh1100717) * 枚举 - * 类和结构体 - * 属性 - * 方法 - * 下标 + * 类和结构体(@JaySurplus 认领) + * 属性(@shinyzhu 认领) + * 方法(@pp-prog 认领) + * 下标(@siemenliu 认领) * 继承 - * 构造函数 - * 析构函数 - * 自动引用计数 - * 可选链 + * 构造过程(@lifedim 认领) + * 析构过程(认领) + * 自动引用计数(@TimothyYe 认领) + * 可选链(认领) * 类型检查 - * 嵌套类型 + * 嵌套类型(完成 By @Lin-H) * 扩展 * 接口 * 泛型 * 高级操作符 * 语言参考 - * 关于语言参考 + * 关于语言参考(完成 By @ChildhoodAndy) * 词法结构 * 类型 * 表达式 diff --git a/chapter1/01_swift.html b/chapter1/01_swift.html index d7025e3d..6f84c85f 100644 --- a/chapter1/01_swift.html +++ b/chapter1/01_swift.html @@ -46,7 +46,7 @@ -
+
@@ -576,7 +576,7 @@
-
+

关于 Swift

Swift 是一种新的编程语言,用于编写 iOS 和 OS X 应用程序。Swift 结合了 C 和 Objective-C 的优点并且不受C的兼容性的限制。Swift 使用安全的编程模式并添加了很多新特性,这将使编程更简单,扩展性更强,也更有趣。除此之外,Swift 还支持人见人爱的 Cocoa 和 Cocoa Touch 框架。拥有了这些特性,Swift将重新定义软件开发。

diff --git a/chapter1/02_a_swift_tour.html b/chapter1/02_a_swift_tour.html index 10169159..87201c31 100644 --- a/chapter1/02_a_swift_tour.html +++ b/chapter1/02_a_swift_tour.html @@ -46,7 +46,7 @@ -
+
@@ -576,7 +576,7 @@
-
+

Swift 初见

通常来说,编程语言教程中的第一个程序应该在屏幕上打印“Hello, world”。在 Swift 中,可以用一行代码实现:

@@ -743,7 +743,7 @@ sumOf(42, 597, 12)

函数可以嵌套。被嵌套的函数可以访问外侧函数的变量,你可以使用嵌套函数来重构一个太长或者太复杂的函数。

func returnFifteen() -> Int {
     var y = 10
-        func add() {
+    func add() {
         y += 5
     }
     add()
@@ -783,7 +783,7 @@ hasAnyMatches(numbers, lessThanTen)
 

练习:重写闭包,对所有奇数返回0.

有很多种创建闭包的方法。如果一个闭包的类型已知,比如作为一个回调函数,你可以忽略参数的类型和返回值。单个语句闭包会把它语句的值当做结果返回。

-

你可以获取参数的数量——这个方法在非常短的闭包中很有用。一个被作为最后一个参数传入函数的时候可以直接出现在括号后面。

+

你可以通过参数位置而不是参数名字来引用参数——这个方法在非常短的闭包中非常有用。当一个闭包作为最后一个参数传给一个函数的时候,它可以直接跟在括号后面。

sort([1, 5, 3, 12, 2]) { $0 > $1 }
 

对象和类

使用class和类名来创建一个类。类中属性的声明和常量、变量声明一样,唯一的区别就是它们的上下文是类。同样,方法和函数声明也一样。

@@ -867,7 +867,7 @@ var triangle = EquilateralTriangle(sideLength: 3.1, name: "a triangle" triangle.perimeter triangle.perimeter = 9.9 triangle.sideLength -

perimeter的 setter 中,新值的名字是newValue。你可以在set之后显示的设置一个名字。

+

perimeter的 setter 中,新值的名字是newValue。你可以在set之后显式的设置一个名字。

注意EquilateralTriangle类的构造器执行了三步:

  1. 设置子类声明的属性值
  2. diff --git a/chapter1/chapter1.html b/chapter1/chapter1.html index 95c45972..7c44ced3 100644 --- a/chapter1/chapter1.html +++ b/chapter1/chapter1.html @@ -46,7 +46,7 @@ -
    +
    @@ -576,7 +576,7 @@
    -
    +

    欢迎使用 Swift

    在本章中您将了解 Swift 的特性和开发历史,并对 Swift 有一个初步的了解。

    diff --git a/chapter2/01_The_Basics.html b/chapter2/01_The_Basics.html index f94d4ec0..56e2bcc4 100644 --- a/chapter2/01_The_Basics.html +++ b/chapter2/01_The_Basics.html @@ -46,7 +46,7 @@ -
    +
    @@ -576,7 +576,7 @@
    -
    +

    基础部分

    Swift 是 iOS 和 OS X 应用开发的一门新语言。然而,如果你有 C 或者 Objective-C 开发经验的话,你会发现 Swift 的很多内容都是你熟悉的。

    @@ -662,38 +662,116 @@ this is the end of the first multiline comment */
    let cat = "🐱"; println(cat)
     // prints "🐱"
     

    整数

    -

    整数就是没有小数部分的数字,比如4223。整数分有符号(正、负、零)或者无符号(正、零)两种。

    -

    Swift 提供了8、16、32和64位的有符号和无符号整数。这些整数和 C 的命名习惯很像,比如8位无符号整数类型是UInt8,32位有符号整数类型是Int32。就像 Swift 的其他类型一样,这些整数类型的名字使用大写字母来命名。

    +

    整数就是没有小数部分的数字,比如42-23。整数可以是有符号(正、负、零)或者无符号(正、零)。

    +

    Swift 提供了8、16、32和64位的有符号和无符号整数类型。这些整数类型和 C 语言的命名方式很像,比如8位无符号整数类型是UInt8,32位有符号整数类型是Int32。就像 Swift 的其他类型一样,整数类型采用大写命名法。

    整数范围

    -

    你可以访问每个整数类型的minmax属性来获取这个类型的最小值和最大值:

    -
    let minValue = UInt8.min  // UInt8 类型的 minValue 等于0
    -let maxValue = UInt8.max  // UInt8 类型的 maxValue 等于255
    -

    这两个值的类型和右侧的整数类型是相同的(比如例子中的UInt8),因此你可以在表达式中把它们和同类型的值一同使用。

    -

    Int

    -

    大多数情况下,你并不需要指定整数长度。Swift 提供了一个特别的整数类型Int,这个类型的长度和当前平台的原生字长一样:

    +

    你可以访问不同整数类型的minmax属性来获取对应类型的最大值和最小值:

    +
    let minValue = UInt8.min  // minValue 为 0,是 UInt8 类型的最小值
    +let maxValue = UInt8.max  // maxValue 为 255,是 UInt8 类型的最大值
    +

    Int

    +

    一般来说,你不需要专门指定整数的长度。Swift 提供了一个特殊的整数类型Int,长度与当前平台的原生字长相同:

      -
    • 在32位平台上,IntInt32长度相同
    • -
    • 在64位平台上,IntInt64长度相同
    • +
    • 在32位平台上,IntInt32长度相同。
    • +
    • 在64位平台上,IntInt64长度相同。
    -

    一般来说,最好使用Int类型,除非你需要指定整数长度。这可以保证代码的一致性和可复用性。即使在32位平台上,Int也可以存储范围为-2147483648~2147483647的整数,大多数时候这已经够用了。

    -

    Uint

    -

    Swift 还提供了一个无符号整数类型UInt,这个类型的长度和当前平台的原生字长一样:

    +

    除非你需要特定长度的整数,一般来说使用Int就够了。这可以提高代码一致性和可复用性。即使是在32位平台上,Int可以存储的整数范围也可以达到-2147483648~2147483647,大多数时候这已经足够大了。

    +

    UInt

    +

    Swift 也提供了一个特殊的无符号类型UInt,长度与当前平台的原生字长相同:

      -
    • 在32位平台上,UIntUInt32长度相同
    • -
    • 在64位平台上,UIntUInt64长度相同
    • +
    • 在32位平台上,UIntUInt32长度相同。
    • +
    • 在64位平台上,UIntUInt64长度相同。
    -

    注意:只在你需要使用无符号整数类型并且长度和平台原生字长相同的时候才使用Uint。如果不是这种情况,最好使用Int,即使要存储的值已知是非负数。使用Int可以保证代码的可复用性,避免不同类型之间的转换,并且符合整数类型推测,详情请见类型安全和类型推测(待添加链接)

    +

    注意:尽量不要使用UInt,除非你真的需要存储一个和当前平台原生字长相同的无符号整数。除了这种情况,最好使用Int,即使你要存储的值已知是非负的。统一使用Int可以提高代码的可复用性,避免不同类型数字之间的转换,并且匹配数字的类型推测,详情参见类型安全和类型推测

    浮点数

    浮点数是有小数部分的数字,比如3.141590.1-273.15

    -

    浮点类型可以表示的数字范围比整数类型要大,因此可以存储比Int类型更大或者更小的数字。Swift 提供了两种有符号浮点数类型:

    +

    浮点类型比整数类型表示的范围更大,可以存储比Int类型更大或者更小的数字。Swift 提供了两种有符号浮点数类型:

      -
    • Double表示64位浮点数。当浮点值非常大或者需要非常准确的时候使用此类型。
    • -
    • Float表示32位浮点数。当浮点值不需要使用Double的时候使用此类型。
    • +
    • Double表示64位浮点数。当你需要存储很大或者很高精度的浮点数时请使用此类型。
    • +
    • Float表示32位浮点数。精度要求不高的话可以使用此类型。
    -

    注意:Double的准确程度是至少15个十进制数字,而Float的准确程度是至少6个十进制数字。到底选择哪个浮点类型取决于你要存储的值。

    +

    注意:Double精确度很高,至少有15位数字,而Float最少只有6位数字。选择哪个类型取决于你的代码需要处理的数字大小。

    +
    +

    类型安全和类型推测

    +

    Swift 是一个类型安全的语言。类型安全的语言可以让你清楚地知道代码要处理的值的类型。如果你的代码需要一个String,你绝对不可能不小心传进去一个Int

    +

    Swift 是类型安全的,会在编译你的代码时进行类型检查,如果遇到不匹配的类型会报错。这可以让你在开发的时候尽早发现并修复错误。

    +

    当你要处理不同类型的值时,类型检查可以帮你避免错误。然而,这并不是说你每次声明常量和变量的时候都需要显式指定类型。如果你没有显式指定类型,Swift 会使用类型推测来选择合适的类型。有了类型推测,编译器可以在编译代码的时候自动推测出表达式的类型。原理很简单,判断你赋的值即可。

    +

    因为有类型推测,和 C 或者 Objc 比起来 Swift 很少需要声明类型。常量和变量虽然需要明确类型,但是大部分工作并不需要你自己来完成。

    +

    当你声明常量或者变量并赋初值的时候类型推测非常有用。当你在声明常量或者变量的时候赋给它们一个原始值即可触发类型推测。(原始值就是会直接出现在你代码中的值,比如423.14159。)

    +

    举个例子,如果你给一个新常量赋值42并且没有标明类型,Swift 可以推测出常量类型是Int,因为你给它赋的初值看起来很像一个整数:

    +
    let meaningOfLife = 42
    +// meaningOfLife 会被推测为 Int 类型
    +

    同理,如果你没有给浮点原始值标明类型,Swift 会推测你想要的是Double

    +
    let pi = 3.14159
    +// pi 会被推测为 Double 类型
    +

    当推测浮点数的类型时,Swift 总是会选择Double而不是Float

    +

    如果表达式中同时出现了整数和浮点数,会被推测为Double类型:

    +
    let anotherPi = 3 + 0.14159
    +// anotherPi 会被推测为 Double 类型
    +

    原始值3没有显式声明类型,而表达式中出现了一个浮点原始值,所以表达式会被推测为Double类型。

    +

    数值类原始值

    +

    整数原始值可以被写作:

    +
      +
    • 一个十进制数,没有前缀
    • +
    • 一个二进制数,前缀是0b
    • +
    • 一个八进制数,前缀是0o
    • +
    • 一个十六进制数,前缀是0x
    • +
    +

    下面的所有整数原始值的十进制值都是17:

    +
    let decimalInteger = 17
    +let binaryInteger = 0b10001       // 二进制的17
    +let octalInteger = 0o21           // 八进制的17
    +let hexadecimalInteger = 0x11     // 十六机制的17
    +

    浮点原始值可以是十进制(没有前缀)或者是十六进制(前缀是0x)。小数点两边必须有至少一个十进制数字(或者是十六进制的数字)。浮点原始值还有一个可选的指数,在十进制浮点数中通过大写或者小写的e来指定,在十六进制浮点数中通过大写或者小写的p来指定。

    +

    如果一个十进制数的指数为exp,那这个数相当于基数和10^exp的乘积:

    +
      +
    • 1.25e2 表示 1.25 × 10^2,等于 125.0。
    • +
    • 1.25e-2 表示 1.25 × 10^-2,等于 0.0125。
    • +
    +

    如果一个十六进制数的指数为exp,那这个数相当于基数和2^exp的乘积:

    +
      +
    • 0xFp2 表示 15 × 2^2,等于 60.0。
    • +
    • 0xFp-2 表示 15 × 2^-2,等于 3.75。
    • +
    +

    下面的这些浮点原始值都等于十进制的12.1875

    +
    let decimalDouble = 12.1875
    +let exponentDouble = 1.21875e1
    +let hexadecimalDouble = 0xC.3p0
    +

    数值类原始值可以包括额外的格式来增强可读性。整数和浮点数都可以添加额外的零并且包含下划线,并不会影响原始值:

    +
    let paddedDouble = 000123.456
    +let oneMillion = 1_000_000
    +let justOverOneMillion = 1_000_000.000_000_1
    +

    数值类型转换

    +

    通常来讲,即使代码中的整数常量和变量已知非负,也请使用Int类型。总是使用默认的整数类型可以保证你的整数常量和变量可以直接被复用并且可以匹配整数类原始值的类型推测。 +只有在必要的时候才使用其他整数类型,比如要处理外部的长度明确的数据或者为了优化性能、内存占用等等。使用显式指定长度的类型可以及时发现值溢出并且可以暗示正在处理特殊数据。

    +

    整数转换

    +

    不同整数类型的变量和常量可以存储不同大小的数字。Int8类型的常量或者变量可以存储的数字范围是-128~127UInt8类型的常量或者变量能存储的数字范围是0~255。如果数字超出了常量或者变量可存储的范围,编译的时候会报错:

    +
    let cannotBeNegative: UInt8 = -1
    +// UInt8 类型不能存储负数,所以会报错
    +let tooBig: Int8 = Int8.max + 1
    +// Int8 类型不能存储超过最大值的数,所以会报错
    +

    因为每一个整数类型都可以存储不同范围的值,你必须根据情况来选择不同的转换方法。不同的转换方法可以暴露出隐藏的转换错误并让你的代码更加清晰。

    +

    要将一种数字类型转换成另一种,你要用当前值来初始化一个新数字,这个数字的类型就是你的目标类型。在下面的例子中,常量twoThousand类型是UInt16,然而常量one类型是Uint8。它们不能直接相加,因为它们类型不同。所以要调用UInt16(one)来创建一个新的UInt16数字并用one的值来初始化,然后使用这个新数字来计算:

    +
    let twoThousand: UInt16 = 2_000
    +let one: UInt8 = 1
    +let twoThousandAndOne = twoThousand + UInt16(one)
    +

    现在两个数字的类型都是UInt16,可以进行相加。目标常量twoThousandAndOne的类型被推测为UInt16,因为它是两个UInt16值的合。

    +

    SomeType(ofInitialValue)是调用 Swift 构造器并传入一个初始值的默认方法。在语言内部,UInt16有一个构造器,可以接受一个UInt8类型的值,所以这个构造器可以用现有的UInt8来创建一个新的UInt16。注意,你并不能传入任意类型的值,只能传入UInt16内部有对应构造器的值。不过你可以扩展现有的类型来让它可以接收其他类型的值(包括自定义类型),详情参见扩展(链接待添加).

    +

    整数和浮点数转换

    +

    整数和浮点数的转换必须显式指定类型:

    +
    let three = 3
    +let pointOneFourOneFiveNine = 0.14159
    +let pi = Double(three) + pointOneFourOneFiveNine
    +// pi 等于 3.14159,所以被推测为 Double 类型
    +

    这个例子中,常量three的值被用来创建一个Double类型的值,所以加号两边的数类型相同。如果不进行转换,两者无法相加。

    +

    浮点数转换为整数也一样,整数类型可以用Double或者Float类型来初始化:

    +
    let integerPi = Int(pi)
    +// integerPi 等于 3,所以被推测为 Int 类型
    +

    当用这种方式来初始化一个新的整数值时,浮点值会被截断。也就是说4.75会变成4-3.9会变成3

    +
    +

    注意:结合数字类常量和变量不同于结合数字类原始值。原始值3可以直接和原始值0.14159相加,因为数字原始值本身没有明确的类型。它们的类型只在编译器需要求值的时候被推测。

    diff --git a/chapter2/02_Basic_Operators.html b/chapter2/02_Basic_Operators.html index 822acfbc..4ad09e2b 100644 --- a/chapter2/02_Basic_Operators.html +++ b/chapter2/02_Basic_Operators.html @@ -46,7 +46,7 @@ -
    +
    diff --git a/chapter2/03_Strings_and_Characters.html b/chapter2/03_Strings_and_Characters.html index a715c9a4..4e374a3f 100644 --- a/chapter2/03_Strings_and_Characters.html +++ b/chapter2/03_Strings_and_Characters.html @@ -46,7 +46,7 @@ -
    +
    @@ -576,20 +576,28 @@
    -
    +

    字符串和字符 (Strings and Characters)

    -

    String 是一个有序的字符集合,例如 "hello, world", "albatross"。Swift 字符串通过 String 类型来表示,也可以表示为 Character 类型值的集合。

    -

    Swift 的 StringCharacter 类型提供了一个快速的,兼容 Unicode 的方式来处理代码中的文本信息。创建和操作字符串的语法与 C的操作方式相似,轻量并且易读。字符串连接操作只需要简单地通过 + 号将两个字符串相连即可。与 Swift 中其他值一样,能否更改字符串的值,取决于其被定义为常量还是变量。

    -

    尽管语法简易,但 String 类型是一种快速、现代化的字符串实现。每一个字符串都是由独立编码的 Unicode 字符组成,并提供了用于访问这些字符在不同的Unicode表示的支持。

    +

    String 是一个有序的字符集合,例如 "hello, world", "albatross"。 +Swift 字符串通过 String 类型来表示,也可以表示为 Character 类型值的集合。

    +

    Swift 的 StringCharacter 类型提供了一个快速的,兼容 Unicode 的方式来处理代码中的文本信息。 +创建和操作字符串的语法与 C的操作方式相似,轻量并且易读。 +字符串连接操作只需要简单地通过 + 号将两个字符串相连即可。 +与 Swift 中其他值一样,能否更改字符串的值,取决于其被定义为常量还是变量。

    +

    尽管语法简易,但 String 类型是一种快速、现代化的字符串实现。 +每一个字符串都是由独立编码的 Unicode 字符组成,并提供了用于访问这些字符在不同的Unicode表示的支持。

    String 也可以用于在常量、变量、字面量和表达式中进行字符串插值,这使得创建用于展示、存储和打印的字符串变得轻松自如。

    注意:

    -

    Swift 的 String 类型与 Foundation NSString 类进行了无缝桥接。如果您利用 Cocoa 或 Cocoa Touch 中的 Foundation 框架进行工作,整个 NSString API 都可以调用您创建的任意 String 类型的值,您额外还可以在任意 API 中使用本章介绍的 String 特性。您也可以在任意要求传入NSString 实例作为参数的 API 中使用 String 类型的值进行替换。

    +

    Swift 的 String 类型与 Foundation NSString 类进行了无缝桥接。 +如果您利用 Cocoa 或 Cocoa Touch 中的 Foundation 框架进行工作,整个 NSString API 都可以调用您创建的任意 String 类型的值,您额外还可以在任意 API 中使用本章介绍的 String 特性。 +您也可以在任意要求传入NSString 实例作为参数的 API 中使用 String 类型的值进行替换。

    更多关于在 Foundation 和 Cocoa 中使用 String 的信息请查看 Using Swift with Cocoa and Objective-C

    字符串字面量

    -

    您可以在您的代码中包含一段预定义的字符串值作为字符串字面量。字符串字面量是由双引号包裹着的具有固定顺序的文本字符集。

    +

    您可以在您的代码中包含一段预定义的字符串值作为字符串字面量。 +字符串字面量是由双引号包裹着的具有固定顺序的文本字符集。

    字符串字面量可以用于为常量和变量提供初始值。

    let someString = "Some string literal value"
     
    @@ -611,7 +619,8 @@ let dollarSign = "\x24" // $, Unicode scalar U+0024 let blackHeart = "\u2665" // ♥, Unicode scalar U+2665 let sparklingHeart = "\U0001F496" // 💖, Unicode scalar U+1F496

    初始化空字符串

    -

    为了构造一个很长的字符串,可以创建一个空字符串作为初始值。可以将空的字符串字面量赋值给变量,也可以初始化一个新的 String 实例:

    +

    为了构造一个很长的字符串,可以创建一个空字符串作为初始值。 +可以将空的字符串字面量赋值给变量,也可以初始化一个新的 String 实例:

    var emptyString = ""               // empty string literal
     var anotherEmptyString = String()  // initializer syntax
     // 这两个字符串都为空,并且两者等价
    @@ -633,15 +642,21 @@ constantString += " and another Highlander"
     

    在 Objective-C 和 Cocoa 中,您通过选择两个不同的类( NSString 和 NSMutableString )来指定该字符串是否可以被修改,Swift中的字符串是否可以修改仅通过定义的是变量还是常量来决定,实现了多种类型可变性操作的统一。

    字符串是值类型

    -

    Swift 的 String 类型是值类型。如果您创建了一个新的字符串,那么当其进行常量、变量赋值操作或在函数/方法中传递时,会进行值拷贝。任何情况下,都会对已有字符串值创建新副本,并对该新副本进行传递或赋值。值类型在 Structures and Enumerations Are Value Types 中进行了说明。

    +

    Swift 的 String 类型是值类型。 +如果您创建了一个新的字符串,那么当其进行常量、变量赋值操作或在函数/方法中传递时,会进行值拷贝。 +任何情况下,都会对已有字符串值创建新副本,并对该新副本进行传递或赋值。 +值类型在 Structures and Enumerations Are Value Types 中进行了说明。

    注意:

    -

    其 Cocoa 中的 NSString 不同,当您在 Cocoa 中创建了一个 NSString 实例,并将其传递给一个函数/方法,或者赋值给一个变量,您永远都是传递或赋值同一个 NSString 实例的一个引用。除非您特别要求其进行值拷贝,否则字符串不会进行赋值新副本操作。

    +

    与 Cocoa 中的 NSString 不同,当您在 Cocoa 中创建了一个 NSString 实例,并将其传递给一个函数/方法,或者赋值给一个变量,您永远都是传递或赋值同一个 NSString 实例的一个引用,除非您特别要求其进行值拷贝,否则字符串不会进行赋值新副本操作。

    -

    Swift 默认字符串拷贝的方式保证了在函数/方法中传递的是字符串的值,其明确了无论该值来自于哪里,都是您独自拥有的。您可以放心您传递的字符串本身不会被更改。

    +

    Swift 默认字符串拷贝的方式保证了在函数/方法中传递的是字符串的值,其明确了无论该值来自于哪里,都是您独自拥有的。 +您可以放心您传递的字符串本身不会被更改。

    在实际编译时,Swift编译器会优化字符串的使用,使实际的复制只发生在绝对必要的情况下,这意味着您始终可以将字符串作为值类型的同时获得极高的性能。

    使用字符(Characters)

    -

    Swift 的 String 类型表示特定序列的字符值的集合。每一个字符值代表一个 Unicode 字符。您可利用 for-in 循环来遍历字符串中的每一个字符:

    +

    Swift 的 String 类型表示特定序列的字符值的集合。 +每一个字符值代表一个 Unicode 字符。 +您可利用 for-in 循环来遍历字符串中的每一个字符:

    for character in "Dog!🐶" {
         println(character)
     }
    @@ -660,8 +675,13 @@ println("unusualMenagerie has \(countElements(unusualMenagerie)) characters
     // prints "unusualMenagerie has 40 characters"
     

    注意:

    -

    不同的 Unicode 字符以及相同 Unicode 字符的不同表示方式可能需要不同数量的内存空间来存储,所以Swift 中的字符在一个字符串中并不一定占用相同的内存空间。因此,字符串的长度不得不通过迭代字符串中每一个字符的长度来进行计算。如果您正在处理一个长字符串,需要注意 countElements 函数必须遍历字符串中的字符以精准计算字符串的长度。

    -

    另外需要注意的是通过 countElements 返回的字符数量并不总是与包含相同字符的 NSString 的 length 属性相同。NSString 的 length 属性是基于利用 UTF-16 表示的十六位代码单元数字,而不是基于 Unicode 字符。为了解决这个问题,NSString 的 length 属性在被 Swift的 String 访问时会成为 utf16count

    +

    不同的 Unicode 字符以及相同 Unicode 字符的不同表示方式可能需要不同数量的内存空间来存储。 +所以Swift 中的字符在一个字符串中并不一定占用相同的内存空间。 +因此字符串的长度不得不通过迭代字符串中每一个字符的长度来进行计算。 +如果您正在处理一个长字符串,需要注意 countElements 函数必须遍历字符串中的字符以精准计算字符串的长度。

    +

    另外需要注意的是通过 countElements 返回的字符数量并不总是与包含相同字符的 NSString 的 length 属性相同。 +NSString 的 length 属性是基于利用 UTF-16 表示的十六位代码单元数字,而不是基于 Unicode 字符。 +为了解决这个问题,NSString 的 length 属性在被 Swift的 String 访问时会成为 utf16count

    连接字符串和字符

    字符串和字符的值可以通过加法运算符 (+) 相加在一起并创建一个新的字符串值:

    @@ -687,12 +707,16 @@ welcome += character1

    您不能将一个字符串或者字符添加到一个已经存在的字符变量上,因为字符变量只能包含一个字符。

    字符串插值

    -

    字符串插值是一种全新的构建字符串的方式,可以在其中包含常量、变量、字面量和表达式。您插入的字符串字面量的每一项都被包裹在以反斜线为前缀的圆括号中:

    +

    字符串插值是一种全新的构建字符串的方式,可以在其中包含常量、变量、字面量和表达式。 +您插入的字符串字面量的每一项都被包裹在以反斜线为前缀的圆括号中:

    let multiplier = 3
     let message = "\(multiplier) times 2.5 is \(Double(multiplier) * 2.5)"
     // message is "3 times 2.5 is 7.5"
    -

    在上面的例子中,multiplier 作为 \(multiplier) 被插入到一个字符串字面量中。当创建字符串执行插值计算时此占位符会被替换为 multiplier 实际的值。

    -

    multiplier 的值也作为字符串中后面表达式的一部分。该表达式计算 Double(multiplier) * 2.5 的值并将结果 (7.5) 插入到字符串中。在这个例子中,表达式写为 \(Double(multiplier) * 2.5) 并包含在字符串字面量中。

    +

    在上面的例子中,multiplier 作为 \(multiplier) 被插入到一个字符串字面量中。 +当创建字符串执行插值计算时此占位符会被替换为 multiplier 实际的值。

    +

    multiplier 的值也作为字符串中后面表达式的一部分。 +该表达式计算 Double(multiplier) * 2.5 的值并将结果 (7.5) 插入到字符串中。 +在这个例子中,表达式写为 \(Double(multiplier) * 2.5) 并包含在字符串字面量中。

    注意:

    您插值字符串中写在括号中的表达式不能包含非转义双引号 (") 和反斜杠 (\),并且不能包含回车或换行符。

    @@ -708,7 +732,9 @@ if quotation == sameQuotation { } // prints "These two strings are considered equal"
    前缀/后缀相等
    -

    通过调用字符串的 hasPrefix/hasSuffix 方法来检查字符串是否拥有特定前缀/后缀。两个方法均需要以字符串作为参数传入并传出 Boolean 值。两个方法均执行基本字符串和前缀/后缀字符串之间逐个字符的比较操作。

    +

    通过调用字符串的 hasPrefix/hasSuffix 方法来检查字符串是否拥有特定前缀/后缀。 +两个方法均需要以字符串作为参数传入并传出 Boolean 值。 +两个方法均执行基本字符串和前缀/后缀字符串之间逐个字符的比较操作。

    下面的例子以一个字符串数组表示莎士比亚话剧 罗密欧与朱丽叶 中前两场的场景位置:

    let romeoAndJuliet = [
         "Act 1 Scene 1: Verona, A public place",
    @@ -740,14 +766,17 @@ let shouty = normal.uppercaseString
     let whispered = normal.lowercaseString
     // whispered 值为 "could you help me, please?"
     

    Unicode

    -

    Unicode 是文本编码和表示的国际标准。它使您可以用标准格式表示来自任意语言几乎所有的字符,并能够对文本文件或网页这样的外部资源中的字符进行读写操作。

    +

    Unicode 是文本编码和表示的国际标准。 +它使您可以用标准格式表示来自任意语言几乎所有的字符,并能够对文本文件或网页这样的外部资源中的字符进行读写操作。

    Swift 的字符串和字符类型是完全兼容 Unicode 的,它支持如下所述的一系列不同的 Unicode 编码。

    Unicode 术语(Terminology)
    -

    Unicode 中每一个字符都可以被解释为一个或多个 unicode 标量。字符的 unicode 标量是一个唯一的21位数字(和名称),例如 U+0061 表示小写的拉丁字母A ("a"),U+1F425 表示正面站立的鸡宝宝 ("🐥")

    +

    Unicode 中每一个字符都可以被解释为一个或多个 unicode 标量。 +字符的 unicode 标量是一个唯一的21位数字(和名称),例如 U+0061 表示小写的拉丁字母A ("a"),U+1F425 表示小幺鸡表情 ("🐥")

    当 Unicode 字符串被写进文本文件或其他存储结构当中,这些 unicode 标量将会按照 Unicode 定义的集中格式之一进行编码。其包括 UTF-8 (以8位代码单元进行编码) 和 UTF-16 (以16位代码单元进行编码)。

    字符串的 Unicode 表示

    Swift 提供了几种不同的方式来访问字符串的 Unicode 表示。

    -

    您可以利用 for-in 来对字符串进行遍历,从而以 Unicode 字符的方式访问每一个字符值。该过程在 Working with Characters 中进行了描述。

    +

    您可以利用 for-in 来对字符串进行遍历,从而以 Unicode 字符的方式访问每一个字符值。 +该过程在 Working with Characters 中进行了描述。

    另外,能够以其他三种 Unicode 兼容的方式访问字符串的值:

    • UTF-8 代码单元集合 (利用字符串的 utf8 属性进行访问)
    • @@ -757,31 +786,39 @@ let whispered = normal.lowercaseString

      下面由 D o g !🐶 (狗脸表情,Unicode 标量为 U+1F436)组成的字符串中的每一个字符代表着一种不同的表示:

      let dogString = "Dog!🐶"
       
      UTF-8
      -

      您可以通过遍历字符串的 utf8 属性来访问它的 UTF-8 表示。其为 UTF8View 类型的属性,UTF8View 是无符号8位 (UInt8) 值的集合,每一个 UIn8 都是一个字符的 UTF-8 表示:

      +

      您可以通过遍历字符串的 utf8 属性来访问它的 UTF-8 表示。 +其为 UTF8View 类型的属性,UTF8View 是无符号8位 (UInt8) 值的集合,每一个 UIn8 都是一个字符的 UTF-8 表示:

      for codeUnit in dogString.utf8 {
           print("\(codeUnit) ")
       }
       print("\n")
       // 68 111 103 33 240 159 144 182
      -

      上面的例子中,前四个10进制代码单元值 (68, 111, 103, 33) 代表了字符 D o g! ,他们的 UTF-8 表示与 ASCII 表示相同。后四个代码单元值 (240, 159, 144, 182) 是 狗脸表情 的4位 UTF-8 表示。

      +

      上面的例子中,前四个10进制代码单元值 (68, 111, 103, 33) 代表了字符 D o g! ,他们的 UTF-8 表示与 ASCII 表示相同。 +后四个代码单元值 (240, 159, 144, 182) 是 狗脸表情 的4位 UTF-8 表示。

      UTF-16
      -

      您可以通过遍历字符串的 utf16 属性来访问它的 UTF-16 表示。其为 UTF16View 类型的属性,UTF16View 是无符号16位 (UInt16) 值的集合,每一个 UInt16 都是一个字符的 UTF-16 表示:

      +

      您可以通过遍历字符串的 utf16 属性来访问它的 UTF-16 表示。 +其为 UTF16View 类型的属性,UTF16View 是无符号16位 (UInt16) 值的集合,每一个 UInt16 都是一个字符的 UTF-16 表示:

      for codeUnit in dogString.utf16 {
           print("\(codeUnit) ")
       }
       print("\n")
       // 68 111 103 33 55357 56374
       

      同样,前四个代码单元值 (68, 111, 103, 33) 代表了字符 D o g! ,他们的 UTF-16 代码单元和 UTF-8 完全相同。

      -

      第五和第六个代码单元值 (55357 and 56374) 是 狗脸表情 字符的UTF-16 表示。第一个值为 U+D83D (十进制值为 55357),第二个值为 U+DC36 (十进制值为 56374)。

      +

      第五和第六个代码单元值 (55357 and 56374) 是 狗脸表情 字符的UTF-16 表示。 +第一个值为 U+D83D (十进制值为 55357),第二个值为 U+DC36 (十进制值为 56374)。

      Unicode 标量 (Scalars)
      -

      您可以通过遍历字符串的 unicodeScalars 属性来访问它的 Unicode 标量表示。其为 UnicodeScalarView 类型的属性, UnicodeScalarViewUnicodeScalar 的集合。UnicodeScalar 是21位的 Unicode 代码点。

      +

      您可以通过遍历字符串的 unicodeScalars 属性来访问它的 Unicode 标量表示。 +其为 UnicodeScalarView 类型的属性, UnicodeScalarViewUnicodeScalar 的集合。 +UnicodeScalar 是21位的 Unicode 代码点。

      每一个 UnicodeScalar 拥有一个值属性,可以返回对应的21位数值,用 UInt32 来表示。

      for scalar in dogString.unicodeScalars {
           print("\(scalar.value) ")
       }
       print("\n")
       // 68 111 103 33 128054
      -

      同样,前四个代码单元值 (68, 111, 103, 33) 代表了字符 D o g! 。第五位数值,128054,是一个十六进制1F436的十进制表示。其等同于 狗脸表情 的Unicode 标量 U+1F436。

      +

      同样,前四个代码单元值 (68, 111, 103, 33) 代表了字符 D o g! 。 +第五位数值,128054,是一个十六进制1F436的十进制表示。 +其等同于 狗脸表情 的Unicode 标量 U+1F436。

      作为查询字符值属性的一种替代方法,每个 UnicodeScalar 值也可以用来构建一个新的字符串值,比如在字符串插值中使用:

      for scalar in dogString.unicodeScalars {
           println("\(scalar) ")
      diff --git a/chapter2/04_Collection_Types.html b/chapter2/04_Collection_Types.html
      index ed625c17..b624e02c 100644
      --- a/chapter2/04_Collection_Types.html
      +++ b/chapter2/04_Collection_Types.html
      @@ -46,7 +46,7 @@
       
       
               
      -    
      +
      diff --git a/chapter2/05_Control_Flow.html b/chapter2/05_Control_Flow.html index 03834b12..05f56ece 100644 --- a/chapter2/05_Control_Flow.html +++ b/chapter2/05_Control_Flow.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/06_Functions.html b/chapter2/06_Functions.html index 3742ed60..35c9c4e3 100644 --- a/chapter2/06_Functions.html +++ b/chapter2/06_Functions.html @@ -46,7 +46,7 @@ -
      +
      @@ -576,7 +576,7 @@
      -
      +

      函数(Functions)

      函数是用来完成特定任务的独立的代码块。你给一个函数起一个合适的名字,用来标示函数做什么,并且当函数需要执行的时候,这个名字会被“调用”。

      diff --git a/chapter2/07_Closures.html b/chapter2/07_Closures.html index c835d161..5a6194b8 100644 --- a/chapter2/07_Closures.html +++ b/chapter2/07_Closures.html @@ -46,7 +46,7 @@ -
      +
      @@ -576,6 +576,243 @@
      +
      + +

      闭包

      +

      闭包是功能性自包含模块,可以在代码中被传递和使用。 +Swift 中的闭包与 C 和 Objective-C 中的 blocks 以及其他一些编程语言中的 lambdas 比较相似。

      +

      闭包可以 捕获 和存储其所在上下文中任意常量和变量的引用。 +这就是所谓的闭合并包裹着这些常量和变量,俗称闭包。Swift 会为您管理在 捕获 过程中涉及到的内存操作。

      +
      +

      注意:

      +

      如果您不熟悉 捕获 (capturing) 这个概念也不用担心,后面会详细对其进行介绍。

      +
      +

      函数 章节中介绍的全局和嵌套函数实际上也是特殊的闭包,闭包采取如下三种形式之一:

      +
        +
      • 全局函数是一个有名字但不会捕获任何值的闭包
      • +
      • 嵌套函数是一个有名字并可以捕获其封闭函数域内值的闭包
      • +
      • 闭包表达式是一个利用轻量级语法所写的可以捕获其上下文中变量或常量值的没有名字的闭包
      • +
      +

      Swift 的闭包表达式拥有简洁的风格,并鼓励在常见场景中进行语法优化,主要优化如下:

      +
        +
      • 利用上下文推断参数和返回值类型
      • +
      • 单表达式闭包可以省略 return 关键字
      • +
      • 参数名称缩写
      • +
      • Trailing 闭包语法
      • +
      +

      闭包表达式

      +

      嵌套函数是一个在较复杂函数中方便进行命名和定义自包含代码模块的方式。 +当然,有时候撰写小巧的没有完整定义和命名的类函数结构也是很有用处的,尤其是在您处理一些函数并需要将另外一些函数作为该函数的参数时。

      +

      闭包表达式是一种利用简洁语法构建内联闭包的方式。 +闭包表达式提供了一些语法优化,使得撰写闭包变得简单明了。 +下面闭包表达式的例子通过使用几次迭代展示了 sort 函数定义和语法优化的方式。 +每一次迭代都用更简洁的方式描述了相同的功能。

      +
      sort 函数
      +

      Swift 标准库提供了 sort 函数,会根据您提供的排序闭包将已知类型数组中的值进行排序。 +一旦排序完成,函数会返回一个与原数组大小相同的新数组,该数组中包含已经正确排序的同类型元素。

      +

      下面的闭包表达式示例使用 sort 函数对一个 String 类型的数组进行字母逆序排序,以下是初始数组值:

      +
      let names = ["Chris", "Alex", "Ewa", "Barry", "Daniella"]
      +

      该例子对一个 String 类型的数组进行排序,因此排序闭包需为 (String, String) -> Bool 类型的函数。

      +

      提供排序闭包的一种方式是撰写一个符合其类型要求的普通函数,并将其作为 sort 函数的第二个参数传入:

      +
      func backwards(s1: String, s2: String) -> Bool {
      +    return s1 > s2
      +}
      +var reversed = sort(names, backwards)
      +// reversed is equal to ["Ewa", "Daniella", "Chris", "Barry", "Alex"]
      +

      如果第一个字符串 (s1) 大于第二个字符串 (s2),backwards 函数则返回 true,表示在新的数组中 s1 应该出现在 s2 前。 +字符中的 "大于" 表示 "按照字母顺序后出现"。 +这意味着字母 "B" 大于字母 "A", 字符串 "Tom" 大于字符串 "Tim"。 +其将进行字母逆序排序,"Barry" 将会排在 "Alex" 之后。

      +

      然而,这是一个相当冗长的方式,本质上只是写了一个单表达式函数 (a > b)。 +在下面的例子中,利用闭合表达式语法可以更好的构造一个内联排序闭包。

      +
      闭包表达式语法
      +

      闭包表达式语法有如下一般形式:

      +
      { (parameters) -> returnType in
      +    statements
      +}
      +

      闭包表达式语法可以使用常量、变量和 inout 类型作为参数,不提供默认值。 +也可以在参数列表的最后使用可变参数。元组也可以作为参数和返回值。

      +

      下面的例子展示了之前 backwards 函数对应的闭包表达式版本的代码:

      +
      reversed = sort(names, { (s1: String, s2: String) -> Bool in
      +    return s1 > s2
      +    })
      +

      需要注意的是内联闭包参数和返回值类型声明与 backwards 函数类型声明相同。 +在这两种方式中,都写成了 (s1: String, s2: String) -> Bool。 +然而在内联闭包表达式中,函数和返回值类型都写在大括号内,而不是大括号外。

      +

      闭包的函数体部分由关键字 in 引入。 +该关键字表示闭包的参数和返回值类型定义已经完成,闭包函数体即将开始。

      +

      因为这个闭包的函数体部分如此短以至于可以将其改写成一行代码:

      +
      reversed = sort(names, { (s1: String, s2: String) -> Bool in return s1 > s2 } )
      +

      这说明 sort 函数的整体调用保持不变,一对圆括号仍然包裹住了函数中整个参数集合。而其中一个参数现在变成了内联闭包 (相比于 backwards 版本的代码)。

      +
      根据上下文推断类型
      +

      因为排序闭包是作为函数的参数进行传入的,Swift可以推断其参数和返回值的类型。 +sort 期望第二个参数是类型为 (String, String) -> Bool 的函数,因此实际上 String, StringBool 类型并不需要作为闭包表达式定义中的一部分。 +因为所有的类型都可以被正确推断,返回箭头 (->) 和 围绕在参数周围的括号也可以被省略:

      +
      reversed = sort(names, { s1, s2 in return s1 > s2 } )
      +

      实际上任何情况下,通过内联闭包表达式构造的闭包作为参数传递给函数时,都可以推断出闭包的参数和返回值类型,这意味着您几乎不需要利用完整格式构造任何内联闭包。

      +
      单行表达式闭包可以省略 return
      +

      单行表达式闭包可以通过隐藏 return 关键字来隐式返回单行表达式的结果,如上版本的例子可以改写为:

      +
      reversed = sort(names, { s1, s2 in s1 > s2 } )
      +

      在这个例子中,sort 函数的第二个参数函数类型明确了闭包必须返回一个 Bool 类型值。 +因为闭包函数体只包含了一个单一表达式 (s1 > s2),该表达式返回 Bool 类型值,因此这里没有歧义,return关键字可以省略。

      +
      参数名称缩写
      +

      Swift 自动为内联函数提供了参数名称缩写功能,您可以直接通过 $0,$1,$2 来顺序调用闭包的参数。

      +

      如果您在闭包表达式中使用参数名称缩写,您可以在闭包参数列表中省略对其的定义,并且对应参数名称缩写的类型会通过函数类型进行推断。 +in 关键字也同样可以被省略,因为此时闭包表达式完全由闭包函数体构成:

      +
      reversed = sort(names, { $0 > $1 } )
      +

      在这个例子中,$0$1 表示闭包中第一个和第二个 String 类型的参数。

      +
      运算符函数
      +

      实际上还有一种更简短的方式来撰写上面例子中的闭包表达式。 +Swift 的 String 类型定义了关于大于号 (>) 的字符串实现,其作为一个函数接受两个 String 类型的参数并返回 Bool 类型的值。 +而这正好与 sort 函数的第二个参数需要的函数类型相符合。 +因此,您可以简单地传递一个大于号,Swift可以自动推断出您想使用大于号的字符串函数实现:

      +
      reversed = sort(names, >)
      +

      更多关于运算符表达式的内容请查看 Operator Functions

      +

      Trailing 闭包

      +

      如果您需要将一个很长的闭包表达式作为最后一个参数传递给函数,可以使用 trailing 闭包来增强函数的可读性。 +Trailing 闭包是一个书写在函数括号之外(之后)的闭包表达式,函数支持将其作为最后一个参数调用。

      +
      func someFunctionThatTakesAClosure(closure: () -> ()) {
      +    // 函数体部分
      +}
      +
      +// 以下是不使用 trailing 闭包进行函数调用
      +
      +someFunctionThatTakesAClosure({
      +    // 闭包主体部分
      +    })
      +
      +// 以下是使用 trailing 闭包进行函数调用
      +
      +someFunctionThatTakesAClosure() {
      +    // 闭包主体部分
      +}
      +
      +

      注意:

      +

      如果函数只需要闭包表达式一个参数,当您使用 trailing 闭包时,您甚至可以把 () 省略掉。 +NOTE

      +
      +

      在上例中作为 sort 函数参数的字符串排序闭包可以改写为:

      +
      reversed = sort(names) { $0 > $1 }
      +

      当闭包非常长以至于不能在一行中进行书写时,Trailing 闭包变得非常有用。 +举例来说,Swift 的 Array 类型有一个 map 方法,其获取一个闭包表达式作为其唯一参数。 +数组中的每一个元素调用一次该闭包函数,并返回该元素所映射的值(也可以是不同类型的值)。 +具体的映射方式和返回值类型由闭包来指定。

      +

      当提供给数组闭包函数后,map 方法将返回一个新的数组,数组中包含了与原数组一一对应的映射后的值。

      +

      下例介绍了如何在 map 方法中使用 trailing 闭包将 Int 类型数组 [16,58,510] 转换为包含对应 String 类型的数组 ["OneSix", "FiveEight", "FiveOneZero"]:

      +
      let digitNames = [
      +    0: "Zero", 1: "One", 2: "Two",   3: "Three", 4: "Four",
      +    5: "Five", 6: "Six", 7: "Seven", 8: "Eight", 9: "Nine"
      +]
      +let numbers = [16, 58, 510]
      +

      如上代码创建了一个数字位和他们名字映射的英文版本字典。 +同时定义了一个准备转换为字符串的整型数组。

      +

      您现在可以通过传递一个 trailing 闭包给 numbersmap 方法来创建对应的字符串版本数组。 +需要注意的时调用 numbers.map 不需要在 map 后面包含任何括号,因为其只需要传递闭包表达式这一个参数,并且该闭包表达式参数通过 trailing 方式进行撰写:

      +
      let strings = numbers.map {
      +    (var number) -> String in
      +    var output = ""
      +    while number > 0 {
      +        output = digitNames[number % 10]! + output
      +        number /= 10
      +    }
      +    return output
      +}
      +// strings 常量被推断为字符串类型数组,即 String[]
      +// 其值为 ["OneSix", "FiveEight", "FiveOneZero"]
      +

      map 在数组中为每一个元素调用了闭包表达式。 +您不需要指定闭包的输入参数 number 的类型,因为可以通过要映射的数组类型进行推断。

      +

      闭包 number 参数被声明为一个变量参数 (变量的具体描述请参看Constant and Variable Parameters),因此可以在闭包函数体内对其进行修改。 +闭包表达式制定了返回类型为 String,以表明存储映射值的新数组类型为 String

      +

      闭包表达式在每次被调用的时候创建了一个字符串并返回。 +其使用求余运算符 (number % 10) 计算最后一位数字并利用 digitNames 字典获取所映射的字符串。

      +
      +

      注意:

      +

      字典 digitNames 下标后跟着一个叹号 (!),因为字典下标返回一个可选值 (optional value),表明即使该 key 不存在也不会查找失败。 +在上例中,它保证了 number % 10 可以总是作为一个 digitNames 字典的有效下标 key。 +因此叹号可以用于强制展开 (force-unwrap) 存储在可选下标项中的 String 类型值。

      +
      +

      digitNames 字典中获取的字符串被添加到输出的前部,逆序建立了一个字符串版本的数字。 +(在表达式 number % 10中,如果number为16,则返回6,58返回8,510返回0)。

      +

      number 变量之后除以10。 +因为其是整数,在计算过程中未除尽部分被忽略。 +因此 16变成了1,58变成了5,510变成了51。

      +

      整个过程重复进行,直到 number /= 10 为0,这时闭包会将字符串输出,而map函数则会将字符串添加到所映射的数组中。

      +

      上例中 trailing 闭包语法在函数后整洁封装了具体的闭包功能,而不再需要将整个闭包包裹在 map 函数的括号内。

      +

      捕获 (Caputure)

      +

      闭包可以在其定义的上下文中捕获常量或变量。 +即使定义这些常量和变量的原域已经不存在,闭包仍然可以在闭包函数体内引用和修改这些值。

      +

      Swift最简单的闭包形式是嵌套函数,也就是定义在其他函数的函数体内的函数。 +嵌套函数可以捕获其外部函数所有的参数以及定义的常量和变量。

      +

      下例为一个叫做 makeIncrementor 的函数,其包含了一个叫做 incrementor 嵌套函数。 +嵌套函数 incrementor 从上下文中捕获了两个值,runningTotalamount。 +之后 makeIncrementorincrementor 作为闭包返回。 +每次调用 incrementor 时,其会以 amount 作为增量增加 runningTotal 的值。

      +
      func makeIncrementor(forIncrement amount: Int) -> () -> Int {
      +    var runningTotal = 0
      +    func incrementor() -> Int {
      +        runningTotal += amount
      +        return runningTotal
      +    }
      +    return incrementor
      +}
      +

      makeIncrementor 返回类型为 () -> Int。 +这意味着其返回的是一个函数,而不是一个简单类型值。 +该函数在每次调用时不接受参数只返回一个 Int 类型的值。 +关于函数返回其他函数的内容,请查看Function Types as Return Types

      +

      makeIncrementor 函数定义了一个整型变量 runningTotal (初始为0) 用来存储当前跑步总数。 +该值通过 incrementor 返回。

      +

      makeIncrementor 有一个 Int 类型的参数,其外部命名为 forIncrement, 内部命名为 amount,表示每次 incrementor 被调用时 runningTotal 将要增加的量。

      +

      incrementor 函数用来执行实际的增加操作。 +该函数简单地使 runningTotal 增加 amount,并将其返回。

      +

      如果我们单独看这个函数,会发现看上去不同寻常:

      +
      func incrementor() -> Int {
      +    runningTotal += amount
      +    return runningTotal
      +}
      +

      incrementor 函数并没有获取任何参数,但是在函数体内访问了 runningTotalamount 变量。这是因为其通过捕获在包含它的函数体内已经存在的 runningTotalamount 变量而实现。

      +

      由于没有修改 amount 变量,incrementor 实际上捕获并存储了该变量的一个副本,而该副本随着 incrementor 一同被存储。

      +

      然而,因为每次调用该函数的时候都会修改 runningTotal 的值,incrementor 捕获了当前 runningTotal 变量的引用,而不是仅仅复制该变量的初始值。捕获一个引用保证了当 makeIncrementor 结束时候并不会消失,也保证了当下一次执行 incrementor 函数时,runningTotal 可以继续增加。

      +
      +

      注意:

      +

      Swift 会决定捕获引用还是拷贝值。 +您不需要标注 amount 或者 runningTotal 来声明在嵌入的 incrementor 函数中的使用方式。 +Swift 同时也处理 runingTotal 变量的内存管理操作,如果不再被 incrementor 函数使用,则会被清除。

      +
      +

      下面为一个使用 makeIncrementor 的例子:

      +
      let incrementByTen = makeIncrementor(forIncrement: 10)
      +

      该例子定义了一个叫做 incrementByTen 的常量,该常量指向一个每次调用会加10的 incrementor 函数。 +调用这个函数多次可以得到以下结果:

      +
      incrementByTen()
      +// 返回的值为10
      +incrementByTen()
      +// 返回的值为20
      +incrementByTen()
      +// 返回的值为30
      +

      如果您创建了另一个 incrementor,其会有一个属于自己的独立的 runningTotal 变量的引用。 +下面的例子中,incrementBySevne 捕获了一个新的 runningTotal 变量,该变量和 incrementByTen 中捕获的变量没有任何联系:

      +
      let incrementBySeven = makeIncrementor(forIncrement: 7)
      +incrementBySeven()
      +// 返回的值为7
      +incrementByTen()
      +// 返回的值为40
      +
      +

      注意:

      +

      如果您闭包分配给一个类实例的属性,并且该闭包通过指向该实例或其成员来捕获了该实例,您将创建一个在闭包和实例间的强引用环。 +Swift 使用捕获列表来打破这种强引用环。更多信息,请参考 Strong Reference Cycles for Closures

      +
      +

      闭包是引用类型

      +

      上面的例子中,incrementBySevenincrementByTen 是常量,但是这些常量指向的闭包仍然可以增加其捕获的变量值。 +这是因为函数和闭包都是引用类型。

      +

      无论您将函数/闭包赋值给一个常量还是变量,您实际上都是将常量/变量的值设置为对应函数/闭包的引用。 +上面的例子中,incrementByTen 指向闭包的引用是一个常量,而并非闭包内容本身。

      +

      这也意味着如果您将闭包赋值给了两个不同的常量/变量,两个值都会指向同一个闭包:

      +
      let alsoIncrementByTen = incrementByTen
      +alsoIncrementByTen()
      +// 返回的值为50
      +
      + +
      +
      diff --git a/chapter2/08_Enumerations.html b/chapter2/08_Enumerations.html index 6da3f0e1..851e789e 100644 --- a/chapter2/08_Enumerations.html +++ b/chapter2/08_Enumerations.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/09_Classes_and_Structures.html b/chapter2/09_Classes_and_Structures.html index a608d076..1a634e8e 100644 --- a/chapter2/09_Classes_and_Structures.html +++ b/chapter2/09_Classes_and_Structures.html @@ -46,7 +46,7 @@ -
      +
      @@ -576,7 +576,7 @@
      -
      +

      类和结构体

      diff --git a/chapter2/10_Properties.html b/chapter2/10_Properties.html index bb1041c1..1dcc0675 100644 --- a/chapter2/10_Properties.html +++ b/chapter2/10_Properties.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/11_Methods.html b/chapter2/11_Methods.html index e906ae74..e0fa0143 100644 --- a/chapter2/11_Methods.html +++ b/chapter2/11_Methods.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/12_Subscripts.html b/chapter2/12_Subscripts.html index 03598343..20b9940b 100644 --- a/chapter2/12_Subscripts.html +++ b/chapter2/12_Subscripts.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/13_Inheritance.html b/chapter2/13_Inheritance.html index 75e8d76f..1dce4fd8 100644 --- a/chapter2/13_Inheritance.html +++ b/chapter2/13_Inheritance.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/14_Initialization.html b/chapter2/14_Initialization.html index e9fd79f6..1e769c84 100644 --- a/chapter2/14_Initialization.html +++ b/chapter2/14_Initialization.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/15_Deinitialization.html b/chapter2/15_Deinitialization.html index 0712319a..2739714b 100644 --- a/chapter2/15_Deinitialization.html +++ b/chapter2/15_Deinitialization.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/16_Automatic_Reference_Counting.html b/chapter2/16_Automatic_Reference_Counting.html index 4875eacb..7203da4b 100644 --- a/chapter2/16_Automatic_Reference_Counting.html +++ b/chapter2/16_Automatic_Reference_Counting.html @@ -46,7 +46,7 @@ -
      +
      @@ -576,6 +576,24 @@
      +
      + +

      自动引用计数

      +

      Swift使用自动引用计数(ARC)这一机制来跟踪和管理你的应用程序的内存。通常情况下,Swift的内存管理机制会一直起着作用,你无须自己来考虑内存的管理。ARC会在类的实例不再被使用时,自动释放其占用的内存。

      +

      然而,在少数情况下,ARC为了能帮助你管理内存,需要更多的关于你的代码之间关系的信息。本章描述了这些情况,并且为你示范怎样启用ARC来管理你的应用程序的内存。

      +
      +

      注意: 引用计数仅仅应用于类的实例。结构体和枚举类型是值类型,不是引用类型,也不是通过引用的方式存储和传递。

      +
      +

      自动引用计数的工作机制

      +

      当你每次创建一个类的新的实例的时候,ARC会分配一大块内存用来储存实例的信息。内存中会包含实例的类型信息,以及这个实例所有相关属性的值。此外,当实例不再被使用时,ARC释放实例所占用的内存,并让释放的内存能挪作他用。这确保了不再被使用的实例,不会一直占用内存空间。

      +

      然而,当ARC收回和释放了正在被使用中的实例,该实例的属性和方法将不能再被访问和调用。实际上,如果你试图访问这个实例,你的应用程序很可能会崩溃。

      +

      为了确保使用中的实例不会被回收,ARC会跟踪和计算每一个类实例正在被多少属性,常量和变量所引用。哪怕实例的引用数为一,ARC都不会回收这个实例。

      +

      为了使之成为可能,无论你将类实例赋值给属性,常量或者是变量,属性,常量或者变量,都会对此实例创建强引用。之所以称之为强引用,是因为它会将实例牢牢的保持住,只要强引用还在,实例是不允许被释放的。

      +

      自动引用计数实践

      + + +
      +
      diff --git a/chapter2/17_Optional_Chaining.html b/chapter2/17_Optional_Chaining.html index 22dfa9a1..95c91b4e 100644 --- a/chapter2/17_Optional_Chaining.html +++ b/chapter2/17_Optional_Chaining.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/18_Type_Casting.html b/chapter2/18_Type_Casting.html index dd4c52b8..40037d1d 100644 --- a/chapter2/18_Type_Casting.html +++ b/chapter2/18_Type_Casting.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/19_Nested_Types.html b/chapter2/19_Nested_Types.html index b6848b34..5f74d87e 100644 --- a/chapter2/19_Nested_Types.html +++ b/chapter2/19_Nested_Types.html @@ -46,7 +46,7 @@ -
      +
      @@ -576,6 +576,69 @@
      +
      + +

      类型嵌套

      +

      枚举类型常被用于实现特定类或结构体的功能。也能够在有多种变量类型的环境中,方便地定义通用类或结构体来使用,为了实现这种功能,Swift允许你定义类型嵌套,可以在枚举类型、类和结构体中定义支持嵌套的类型。

      +

      要在一个类型中嵌套另一个类型,将需要嵌套的类型的定义写在被嵌套类型的区域{}内,而且可以根据需要定义多级嵌套。

      +

      类型嵌套实例

      +

      下面这个例子定义了一个结构体BlackjackCard(二十一点),用来模拟BlackjackCard中的扑克牌点数。BlackjackCard结构体包含2个嵌套定义的枚举类型SuitRank

      +

      BlackjackCard规则中,Ace牌可以表示1或者11,Ace牌的这一特征用一个嵌套在枚举型Rank的结构体Values来表示。

      +
      struct BlackjackCard {
      +    // 嵌套定义枚举型Suit
      +    enum Suit: Character {
      +       case Spades = "♠", Hearts = "♡", Diamonds = "♢", Clubs = "♣"
      +   }
      +    // 嵌套定义枚举型Rank
      +    enum Rank: Int {
      +       case Two = 2, Three, Four, Five, Six, Seven, Eight, Nine, Ten
      +       case Jack, Queen, King, Ace
      +       struct Values {
      +           let first: Int, second: Int?
      +       }
      +       var values: Values {
      +        switch self {
      +        case .Ace:
      +            return Values(first: 1, second: 11)
      +        case .Jack, .Queen, .King:
      +            return Values(first: 10, second: nil)
      +        default:
      +            return Values(first: self.toRaw(), second: nil)
      +            }
      +       }
      +    }
      +    // BlackjackCard 的属性和方法
      +    let rank: Rank, suit: Suit
      +    var description: String {
      +    var output = "suit is \(suit.toRaw()),"
      +        output += " value is \(rank.values.first)"
      +        if let second = rank.values.second {
      +            output += " or \(second)"
      +        }
      +        return output
      +    }
      +}
      +

      枚举型的Suit用来描述扑克牌的四种花色,并分别用一个Character类型的值代表花色符号。

      +

      枚举型的Rank用来描述扑克牌从Ace~10,J,Q,K,13张牌,并分别用一个Int类型的值表示牌的面值。(这个Int类型的值不适用于Ace,J,Q,K的牌)。

      +

      如上文所提到的,枚举型Rank在自己内部定义了一个嵌套结构体Values。这个结构体包含两个变量,只有Ace有两个数值,其余牌都只有一个数值。结构体Values中定义的两个属性:

      +

      first, 为Int +second, 为 Int?, 或 “optional Int

      +

      Rank定义了一个计算属性values,这个计算属性会根据牌的面值,用适当的数值去初始化Values实例,并赋值给values。对于J,Q,K,Ace会使用特殊数值,对于数字面值的牌使用Int类型的值。

      +

      BlackjackCard结构体自身有两个属性—ranksuit,也同样定义了一个计算属性descriptiondescription属性用ranksuit的中内容来构建对这张扑克牌名字和数值的描述,并用可选类型second来检查是否存在第二个值,若存在,则在原有的描述中增加对第二数值的描述。

      +

      因为BlackjackCard是一个没有自定义构造函数的结构体,在Memberwise Initializers for Structure Types中知道结构体有默认的成员构造函数,所以你可以用默认的initializer去初始化新的常量theAceOfSpades:

      +
      let theAceOfSpades = BlackjackCard(rank: .Ace, suit: .Spades)
      +println("theAceOfSpades: \(theAceOfSpades.description)")
      +// 打印出 "theAceOfSpades: suit is ♠, value is 1 or 11"
      +

      尽管RankSuit嵌套在BlackjackCard中,但仍可被引用,所以在初始化实例时能够通过枚举类型中的成员名称单独引用。在上面的例子中description属性能正确得输出对Ace牌有1和11两个值。

      +

      类型嵌套的引用

      +

      在外部对嵌套类型的引用,以被嵌套类型的名字为前缀,加上所要引用的属性名:

      +
      let heartsSymbol = BlackjackCard.Suit.Hearts.toRaw()
      +// 红心的符号 为 "♡"
      +

      对于上面这个例子,这样可以使Suit, Rank, 和 Values的名字尽可能的短,因为它们的名字会自然的由被定义的上下文来限定。

      + + +
      +
      diff --git a/chapter2/20_Extensions.html b/chapter2/20_Extensions.html index c4803b8c..8c92d9af 100644 --- a/chapter2/20_Extensions.html +++ b/chapter2/20_Extensions.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/21_Protocols.html b/chapter2/21_Protocols.html index f786c005..c8975232 100644 --- a/chapter2/21_Protocols.html +++ b/chapter2/21_Protocols.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/22_Generics.html b/chapter2/22_Generics.html index 47cfff1c..8bea6ac5 100644 --- a/chapter2/22_Generics.html +++ b/chapter2/22_Generics.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/23_Advanced_Operators.html b/chapter2/23_Advanced_Operators.html index 2ce00edb..c7f3a4af 100644 --- a/chapter2/23_Advanced_Operators.html +++ b/chapter2/23_Advanced_Operators.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter2/chapter2.html b/chapter2/chapter2.html index f635943e..2ebf6dcd 100644 --- a/chapter2/chapter2.html +++ b/chapter2/chapter2.html @@ -46,7 +46,7 @@ -
      +
      @@ -576,7 +576,7 @@
      -
      +

      Swift 教程

      本章介绍了 Swift 的各种特性及其使用方法,是全书的核心部分。

      diff --git a/chapter3/01_About_the_Language_Reference.html b/chapter3/01_About_the_Language_Reference.html index b89a228a..a2638685 100644 --- a/chapter3/01_About_the_Language_Reference.html +++ b/chapter3/01_About_the_Language_Reference.html @@ -46,7 +46,7 @@ -
      +
      @@ -576,6 +576,39 @@
      +
      + +

      关于语言附注

      +

      本书的这一节描述了Swift编程语言的形式语法。这里描述的语法是为了帮助您更详细的了解该语言,而不是让您直接实现一个解析器或编译器。

      +

      Swift语言相对小点,这是由于在Swift代码中几乎无处不在的许多常见的的类型,函数以及运算符都由Swift标准库来定义。虽然这些类型,函数和运算符不是Swift语言本身的一部分,但是它们被广泛用于这本书的讨论和代码范例。

      +

      如何阅读语法

      +

      用来描述Swift编程语言形式语法的记法遵循下面几个约定:

      +
        +
      • 箭头(→)用来标记语法产式,可以被理解为“可以包含”。
      • +
      • 句法范畴由斜体文字表示,并出现在一个语法产式规则两侧。
      • +
      • 义词和标点符号由粗体固定宽度的文本显示和只出现在一个语法产式规则的右边。
      • +
      • 选择性的语法产式由竖线(|)分隔。当可选用的语法产式太多时,为了阅读方便,它们将被拆分为多行语法产式规则。
      • +
      • 在少数情况下,常规字体文字用来描述语法产式规则的右边。
      • +
      • 可选的句法范畴和文字用尾标opt来标记。
      • +
      +

      举个例子,getter-setter的语法块的定义如下:

      +
      +

      GRAMMAR OF A GETTER-SETTER BLOCK

      +

      getter-setter-block → {­ getter-clause ­setter-clause­opt ­}­ | {­ setter-clause ­getter-clause­}­

      +
      +

      这个定义表明,一个getter-setter方法​​块可以由一个getter子句后跟一个可选的setter子句构成,用大括号括起来,或者由一个setter子句后跟一个getter子句构成,用大括号括起来。上述的文法产生等价于下面的两个产生,明确阐明如何二中择一:

      +
      +

      GRAMMAR OF A GETTER-SETTER BLOCK

      +

      getter-setter-block → {­ getter-clause ­setter-clause­opt ­}­­

      +

      getter-setter-block → {­ setter-clause ­getter-clause­}­

      +
      +

      ================================================================ +上篇:高级操作符

      +

      下篇:词法结构

      + + +
      +
      diff --git a/chapter3/02_Lexical_Structure.html b/chapter3/02_Lexical_Structure.html index 33784faf..86733718 100644 --- a/chapter3/02_Lexical_Structure.html +++ b/chapter3/02_Lexical_Structure.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter3/03_Types.html b/chapter3/03_Types.html index c9a77f18..afad4120 100644 --- a/chapter3/03_Types.html +++ b/chapter3/03_Types.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter3/04_Expressions.html b/chapter3/04_Expressions.html index 314e3a93..19ec76b4 100644 --- a/chapter3/04_Expressions.html +++ b/chapter3/04_Expressions.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter3/05_Declarations.html b/chapter3/05_Declarations.html index 2e38843c..ad314c81 100644 --- a/chapter3/05_Declarations.html +++ b/chapter3/05_Declarations.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter3/06_Attributes.html b/chapter3/06_Attributes.html index fe6b914c..0239107d 100644 --- a/chapter3/06_Attributes.html +++ b/chapter3/06_Attributes.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter3/07_Patterns.html b/chapter3/07_Patterns.html index b1e7ccc0..1371d351 100644 --- a/chapter3/07_Patterns.html +++ b/chapter3/07_Patterns.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter3/08_Generic_Parameters_and_Arguments.html b/chapter3/08_Generic_Parameters_and_Arguments.html index c4532e29..3289e8e8 100644 --- a/chapter3/08_Generic_Parameters_and_Arguments.html +++ b/chapter3/08_Generic_Parameters_and_Arguments.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/chapter3/09_Summary_of_the_Grammar.html b/chapter3/09_Summary_of_the_Grammar.html index 631120ae..52156252 100644 --- a/chapter3/09_Summary_of_the_Grammar.html +++ b/chapter3/09_Summary_of_the_Grammar.html @@ -44,7 +44,7 @@ -
      +
      diff --git a/chapter3/chapter3.html b/chapter3/chapter3.html index 578dce56..1e7ba6d4 100644 --- a/chapter3/chapter3.html +++ b/chapter3/chapter3.html @@ -46,7 +46,7 @@ -
      +
      diff --git a/index.html b/index.html index d083d683..ead23915 100644 --- a/index.html +++ b/index.html @@ -44,7 +44,7 @@ -
      +
      @@ -574,7 +574,7 @@
      -
      +

      Swift 编程语言

      Swift 是苹果在 WWDC 2014 上发布的一款全新的编程语言,本书译自苹果官方的 Swift 教程《The Swift Programming Language》。

      diff --git a/manifest.appcache b/manifest.appcache index c162b78b..8cf896db 100644 --- a/manifest.appcache +++ b/manifest.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# Revision 1401953615321 +# Revision 1402043894290 CACHE: index.html @@ -21,10 +21,10 @@ chapter2/12_Subscripts.html chapter2/02_Basic_Operators.html chapter2/14_Initialization.html chapter2/15_Deinitialization.html -chapter2/16_Automatic_Reference_Counting.html chapter2/17_Optional_Chaining.html chapter2/18_Type_Casting.html chapter2/19_Nested_Types.html +chapter2/16_Automatic_Reference_Counting.html chapter2/20_Extensions.html chapter2/21_Protocols.html chapter2/22_Generics.html diff --git a/search_index.json b/search_index.json index 1e1e71ab..f4be5795 100644 --- a/search_index.json +++ b/search_index.json @@ -1 +1 @@ -{"version":"0.5.2","fields":[{"name":"title","boost":10},{"name":"body","boost":1}],"ref":"url","documentStore":{"store":{"index.html#gitbook_1366":["2014","languag","program","swift","undefinedundefin","wwdc"],"chapter1/01_swift.html#gitbook_1367":["arc","automat","c","cocoa","cocoa的基础上构建框架栈并将其标准化。objective-c","count","c的兼容性的限制。swift","foundat","hello","io","objective-c","os","refer","swift","touch","undefinedundefin","world","x"],"chapter1/02_a_swift_tour.html#gitbook_1368":["0","0..3","0..time","0.0","1","10","100","103","11","12","13","16","19","2","2.5","20","25","3","3.0","3.1","3.59","3.69","3.79","4","42","43","5","5.2","50","597","69105","7","7.simpledescript","70","70.0","75","8","87","8:09","9","9.9","94","a.adjust","a.simpledescript","ac","ace.toraw","acerawvalu","add","addon","addone(numb","adescript","adjust","amount","anoth","anotherproperti","ant","anycommonel","anycommonelements([1","appl","applese","applesummari","area","b","b.adjust","b.simpledescript","bdescript","blue","bool","bottl","c","captain","card","card(rank","card添加一个方法,创建一副完整的扑克牌并把每张牌的rank和suit","case","catfish","celeri","chees","class","club","condit","condition(item","convertedrank","convertedrank.simpledescript","count","counter","counter.incrementby(2","cucumb","dai","default","deinit","diamond","dictionary(item","result","result(str","result(sunris","return","returnfifteen","rh","rhsitem","sandwich","score","secondforloop","see","self","self.nam","self.sidelength","self被用来区别实例变量。当你创建实例的时候,像传入函数参数一样给类传入构造器的参数。每个属性都需要赋值——无论是通过声明(就像numberofsides)还是通过构造器(就像nam","sequenc","serverrespons","serverresponse.error(\"out","serverresponse.result(\"6:00","serverresponse和switch","set","setter","seven","shape","shape.numberofsid","shape.simpledescript","shapedescript","shape类缺少了一些重要的东西:一个构造函数来初始化类实例。使用init","shoppinglist","shoppinglist[1","side","sidelength","simpl","simpleclass","simpledescript","simplestructur","simplestructure时候mutating关键字用来标记一个会修改结构体的方法。simpleclass","six","size","some(100","some(t","sort([1","soup","spade","spici","squar","square(sidelength","square.sidelength","standard","string","string(self.toraw","string(width","struct","structur","success","suit","suit.heart","suit.simpledescript","suit添加一个color方法,对spades和clubs返回“black”,对hearts和diamonds返回“r","sum","sumof","sumof(42","sumof(numb","sunris","sunset","super.init(nam","swift","switch","switch中匹配到的子句之后,程序会退出switch语句,并不会继续向下运行,所以不需要在每个子句结尾写break","t","t.generatortype.el","tast","tea","teamscor","ten","test","test.area","test.simpledescript","three","threedescript","threeofspad","threeofspades.simpledescript","threeofspadesdescript","time","todai","toraw和fromraw","triagl","triangl","triangle.perimet","triangle.sidelength","triangleandsquar","triangleandsquare(s","triangleandsquare.squar","triangleandsquare.square.sidelength","triangleandsquare.triangle.sidelength","true","tuesdai","tulip","two","type","u","u.generatortype.el","uncom","undefinedundefin","var","veget","vegetablecom","veri","water","watercress","where,只在冒号后面写接口或者类名。<t","width","widthlabel","willset","willset和didset","world","x","x.hassuffix(\"pepp","xcode","y"],"chapter1/chapter1.html#gitbook_1369":["swift","undefinedundefin"],"chapter2/01_The_Basics.html#gitbook_1371":["0","0.0","10","255","3.14159","3.14159,0.1和-273.15","32位平台上,int和int32","32位平台上,uint和uint32","42和23","64位平台上,int和int64","64位平台上,uint和uint64","8、16、32和64","8位无符号整数类型是uint8,32位有符号整数类型是int32","array和dictionari","bonjour","c","cat","chang","cocoa里的nslog函数一样,println","comment","compile-tim","current","currentloginattempt","dogcow","double的准确程度是至少15个十进制数字,而float的准确程度是至少6","double表示64","end","error","first","float表示32位浮点数。当浮点值不需要使用doubl","friendlywelcom","friendlywelcome的值从"hello!"改为了"bonjour!"","hello","int","interpolation)的方式把常量名或者变量名当做占位符加入到长字符串中,swift会用当前常量或变量的值替换这些占位符。将常量或变量名放入反斜杠符加一对圆括号中"\\()"","intuint","int是整型;double和float是浮点型;bool是布尔型;string是字符串。swift","int类型更大或者更小的数字。swift","int类型,除非你需要指定整数长度。这可以保证代码的一致性和可复用性。即使在32位平台上,int也可以存储范围为-2147483648~2147483647","io","languagenam","let来声明常量,用var","line","maximumnumberofloginattempt","maximumnumberofloginattempts或者welcomemessage)和一个指定类型的值(比如数字10或者字符串hello","maximumnumberofloginattempts的新常量,并给它一个值10。然后,声明一个名字是currentloginattempt的变量并将它的值初始化为0","maxvalu","minvalu","min和max","multilin","multipl","nest","nil","now","objective-c","option","os","over","print","println","println(\"th","println(\"thi","println(cat","println(friendlywelcom","println函数输出传入的str","println是一个用来输出的全局函数,输出的内容会在最后带换行。如果你用xcode,println将会输出内容到“console”面板上。(另一种函数叫print","second","start","string","string”的意思是“可以存储任意str","string,名字为welcomemessag","string,类型安全会阻止你不小心传入一个int","swift","swift可以推断出这个常量或者变量的类型,详情参见类型安全和类型推断(待添加链接)。在上面的例子中,没有给welcomemessag","swift用字符串插值(str","tupl","uint","uint8","uint8.max","uint8.min","uint。如果不是这种情况,最好使用int,即使要存储的值已知是非负数。使用int","undefinedundefin","unicod","valu","var","welcomemessag","welcomemessage变量添加了类型标注,表示这个变量可以存储str","written","x","y","z"],"chapter2/03_Strings_and_Characters.html#gitbook_1372":["0","1","10","103","111","128054","128054,是一个十六进制1f436","144","159","16","182","2","2.5","21","240","3","33","39","4","40","5","55357","56374","6","68","7.5","8","act","act1scenecount","alik","anoth","anotheremptystr","api","ascii","blackheart","boolean","c","capulet'","carriag","cell","charact","character1","character2","characterpluscharact","characterplusstr","characters)字符串字面量初始化空字符串字符串可变性字符串是值类型使用字符(characters)计算字符数量连接字符串和字符字符串插值比较字符串字符串相等前缀/后缀相等大写和小写字符串unicodeunicod","cocoa","codeunit","compile-tim","consid","constantstr","countel","countelements(unusualmenageri","d","dog","dogstr","dogstring.unicodescalar","dogstring.utf16","dogstring.utf8","dollarsign","dollarsign、blackheart","double(multipli","dromedari","einstein","empti","emptystr","emptystring.isempti","enumer","equal","error","for-in","foundat","friar","g","good","great","hall","hasprefix","hasprefix/hassuffix","hello","help","here","highland","hors","imagin","import","initi","instruct","isempti","knowledg","koala","lawrence'","length","liter","look","loop","lot","lowercasestr","mansion","messag","more","morn","multipli","n","nn","nnnn","nnnnnnnn","normal","normal.lowercasestr","normal.uppercasestr","noth","nsmutablestr","nsstring","o","objective-c","orchard","outsid","over","penguin","place","pleas","print","print(\"\\(codeunit","print(\"\\(scalar.valu","print(\"\\n","println(\"\\(scalar","println(\"noth","println(\"ther","println(\"thes","println(\"unusualmenageri","println(charact","public","quot","quot;a"),u+1f425","quot;albatross"。swift","quot;hello","quot;🐥"","quotat","r","romeoandjuliet","room","samequot","scalar","scene","scene.hasprefix(\"act","see","shouti","snail","somestr","sparklingheart","street","string","string1","string2","stringpluscharact","stringplusstr","structur","swift","syntax","t","terminolog","time","touch","two","type","u+0024","u+0061","u+1f436","u+1f496","u+2665","u+d83d","u+dc36","u0001f496","u2665","uin8","uint16","uint32","uint8","undefinedundefin","unicod","unicodescalar","unicodescalarview","unnnn","unnnnnnnn","unusualmenageri","uppercasestr","us","utf-16","utf-8","utf-8utf-16unicod","utf16","utf16count","utf16view","utf8","utf8view","valu","var","variablestr","verona","we'r","welcom","whisper","wiseword","work","world"","x24","xnn","yensign"],"chapter2/06_Functions.html#gitbook_1375":["again","anna","argument","brian","func","function","func作为前缀。指定函数返回类型时,用返回箭头->","greet","greeting被调用,该函数结束它的执行并返回greet","hello","paramet","personnam","print","println(sayhello(\"anna","println(sayhello(\"brian","println(sayhelloagain(\"anna","quot;greetingforperson",之所以叫这个名字是因为这个函数用一个人的名字当做输入,并返回给这个人的问候语。为了完成这个任务,你定义一个输入参数-一个叫做personname的string值,和一个包含给这个人问候语的str","return","sayhello(personnam","sayhelloagain(personnam","sayhello。上面的例子展示的是用"anna"和"brian"","sayhello函数时,在圆括号中传给它一个string类型的实参。因为这个函数返回一个string类型的值,sayhello可以被包含在println","sayhello的函数体中,先定义了一个新的名为greeting的string常量,同时赋值了给personname的一个简单问候消息。然后用return关键字把这个问候返回出去。一旦return","string","swift","swift统一的函数语法足够灵活,可以用来表示任何函数,包括从最简单的没有参数名字的c风格函数,到复杂的带局部和外部参数名的objective-c","undefinedundefin"],"chapter2/09_Classes_and_Structures.html#gitbook_1378":["undefinedundefin"],"chapter2/chapter2.html#gitbook_1393":["swift","undefinedundefin"]},"length":9},"tokenStore":{"root":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.01410105757931845},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}},".":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.018292682926829267}}},"docs":{},".":{"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{},"t":{"docs":{},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}},"1":{"0":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}},"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"1":{"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"2":{"8":{"0":{"5":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},",":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"十":{"docs":{},"六":{"docs":{},"进":{"docs":{},"制":{"1":{"docs":{},"f":{"4":{"3":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}}},"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"4":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"docs":{}},"5":{"9":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"docs":{}},"6":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"8":{"2":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"docs":{}},"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.009400705052878966},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.01841620626151013}}},"2":{"0":{"1":{"4":{"docs":{"index.html#gitbook_1366":{"ref":"index.html#gitbook_1366","tf":0.1111111111111111}}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.007366482504604052}}},"4":{"0":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"docs":{}},"5":{"5":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.009400705052878966},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.014732965009208104}},".":{"5":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.009208103130755065}}},"docs":{}}},"3":{"2":{"docs":{},"位":{"docs":{},"平":{"docs":{},"台":{"docs":{},"上":{"docs":{},",":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"和":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"3":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}}}}}}}},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"和":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"3":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}},"3":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}}},"9":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.007366482504604052}},".":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}},"1":{"4":{"1":{"5":{"9":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}},",":{"0":{"docs":{},".":{"1":{"docs":{},"和":{"docs":{},"-":{"2":{"7":{"3":{"docs":{},".":{"1":{"5":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}}}},"docs":{}}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"5":{"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"6":{"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"7":{"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"docs":{}}},"4":{"0":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"2":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}},"和":{"2":{"3":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}}},"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}},"5":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}},"5":{"3":{"5":{"7":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}},"docs":{}},"docs":{}},"docs":{}},"6":{"3":{"7":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}},"docs":{}},"docs":{}},"docs":{}},"9":{"7":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.005875440658049354},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}},".":{"2":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}}},"6":{"4":{"docs":{},"位":{"docs":{},"平":{"docs":{},"台":{"docs":{},"上":{"docs":{},",":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"和":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"6":{"4":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}}}}}}}},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"和":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"6":{"4":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}},"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}}},"9":{"1":{"0":{"5":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"7":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},".":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}}},"5":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},".":{"5":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}},"8":{"7":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}},":":{"0":{"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"docs":{}},"、":{"1":{"6":{"docs":{},"、":{"3":{"2":{"docs":{},"和":{"6":{"4":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"位":{"docs":{},"无":{"docs":{},"符":{"docs":{},"号":{"docs":{},"整":{"docs":{},"数":{"docs":{},"类":{"docs":{},"型":{"docs":{},"是":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"8":{"docs":{},",":{"3":{"2":{"docs":{},"位":{"docs":{},"有":{"docs":{},"符":{"docs":{},"号":{"docs":{},"整":{"docs":{},"数":{"docs":{},"类":{"docs":{},"型":{"docs":{},"是":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"3":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}}}}}}}}}}}}}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}}}}}}},"9":{"4":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},".":{"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}}},"docs":{},"l":{"docs":{},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{},"u":{"docs":{},"a":{"docs":{},"g":{"docs":{"index.html#gitbook_1366":{"ref":"index.html#gitbook_1366","tf":0.1111111111111111}},"e":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.018292682926829267}}}}}}}}}}},"b":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}},"r":{"docs":{},"g":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}}}}}}},"w":{"docs":{},"r":{"docs":{},"e":{"docs":{},"n":{"docs":{},"c":{"docs":{},"e":{"docs":{},"'":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}}},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}},"s":{"docs":{},"s":{"docs":{},"t":{"docs":{},"h":{"docs":{},"a":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"(":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}},"t":{"docs":{},"来":{"docs":{},"声":{"docs":{},"明":{"docs":{},"常":{"docs":{},"量":{"docs":{},",":{"docs":{},"使":{"docs":{},"用":{"docs":{},"v":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"用":{"docs":{},"v":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"s":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}},"i":{"docs":{},"b":{"docs":{},"r":{"docs":{},"a":{"docs":{},"r":{"docs":{},"y":{"docs":{},"'":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"n":{"docs":{},"e":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}},"o":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"o":{"docs":{},"k":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"p":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"w":{"docs":{},"e":{"docs":{},"r":{"docs":{},"c":{"docs":{},"a":{"docs":{},"s":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"g":{"docs":{},"r":{"docs":{},"a":{"docs":{},"m":{"docs":{"index.html#gitbook_1366":{"ref":"index.html#gitbook_1366","tf":0.1111111111111111}}}}}},"t":{"docs":{},"o":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"e":{"docs":{},".":{"docs":{},"a":{"docs":{},"n":{"docs":{},"o":{"docs":{},"t":{"docs":{},"h":{"docs":{},"e":{"docs":{},"r":{"docs":{},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"变":{"docs":{},"量":{"docs":{},"运":{"docs":{},"行":{"docs":{},"时":{"docs":{},"的":{"docs":{},"类":{"docs":{},"型":{"docs":{},"是":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"c":{"docs":{},"l":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{},",":{"docs":{},"编":{"docs":{},"译":{"docs":{},"器":{"docs":{},"会":{"docs":{},"把":{"docs":{},"它":{"docs":{},"的":{"docs":{},"类":{"docs":{},"型":{"docs":{},"当":{"docs":{},"做":{"docs":{},"e":{"docs":{},"x":{"docs":{},"a":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"t":{"docs":{},"o":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.024390243902439025},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384},"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.07142857142857142}},"l":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}},"(":{"docs":{},"\"":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"t":{"docs":{},"h":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}},"i":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"e":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"s":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}},"\\":{"docs":{},"(":{"docs":{},"s":{"docs":{},"c":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}},"n":{"docs":{},"o":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}},"u":{"docs":{},"n":{"docs":{},"u":{"docs":{},"s":{"docs":{},"u":{"docs":{},"a":{"docs":{},"l":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"a":{"docs":{},"g":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}}}}}},"c":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"f":{"docs":{},"r":{"docs":{},"i":{"docs":{},"e":{"docs":{},"n":{"docs":{},"d":{"docs":{},"l":{"docs":{},"y":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}},"s":{"docs":{},"a":{"docs":{},"y":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"a":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}},"b":{"docs":{},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}},"a":{"docs":{},"g":{"docs":{},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"a":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}},"函":{"docs":{},"数":{"docs":{},"输":{"docs":{},"出":{"docs":{},"传":{"docs":{},"入":{"docs":{},"的":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"用":{"docs":{},"来":{"docs":{},"输":{"docs":{},"出":{"docs":{},"的":{"docs":{},"全":{"docs":{},"局":{"docs":{},"函":{"docs":{},"数":{"docs":{},",":{"docs":{},"输":{"docs":{},"出":{"docs":{},"的":{"docs":{},"内":{"docs":{},"容":{"docs":{},"会":{"docs":{},"在":{"docs":{},"最":{"docs":{},"后":{"docs":{},"带":{"docs":{},"换":{"docs":{},"行":{"docs":{},"。":{"docs":{},"如":{"docs":{},"果":{"docs":{},"你":{"docs":{},"用":{"docs":{},"x":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{},",":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"l":{"docs":{},"n":{"docs":{},"将":{"docs":{},"会":{"docs":{},"输":{"docs":{},"出":{"docs":{},"内":{"docs":{},"容":{"docs":{},"到":{"docs":{},"“":{"docs":{},"c":{"docs":{},"o":{"docs":{},"n":{"docs":{},"s":{"docs":{},"o":{"docs":{},"l":{"docs":{},"e":{"docs":{},"”":{"docs":{},"面":{"docs":{},"板":{"docs":{},"上":{"docs":{},"。":{"docs":{},"(":{"docs":{},"另":{"docs":{},"一":{"docs":{},"种":{"docs":{},"函":{"docs":{},"数":{"docs":{},"叫":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"(":{"docs":{},"\"":{"docs":{},"\\":{"docs":{},"(":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}}},"s":{"docs":{},"c":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{},".":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}}}}}},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"r":{"docs":{},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}},"e":{"docs":{},"p":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"r":{"docs":{},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.047619047619047616}}}}}}}}},"n":{"docs":{},"g":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}},"i":{"docs":{},"e":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"o":{"docs":{},"s":{"docs":{},"s":{"docs":{},"i":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}}},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{},"i":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}},"l":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}},"e":{"docs":{},"a":{"docs":{},"s":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}}},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"index.html#gitbook_1366":{"ref":"index.html#gitbook_1366","tf":10.444444444444445},"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":10.404761904761905},"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":10.00587544065805},"chapter1/chapter1.html#gitbook_1369":{"ref":"chapter1/chapter1.html#gitbook_1369","tf":10.75},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.13414634146341464},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.027624309392265192},"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808},"chapter2/chapter2.html#gitbook_1393":{"ref":"chapter2/chapter2.html#gitbook_1393","tf":10.666666666666666}},"可":{"docs":{},"以":{"docs":{},"推":{"docs":{},"断":{"docs":{},"出":{"docs":{},"这":{"docs":{},"个":{"docs":{},"常":{"docs":{},"量":{"docs":{},"或":{"docs":{},"者":{"docs":{},"变":{"docs":{},"量":{"docs":{},"的":{"docs":{},"类":{"docs":{},"型":{"docs":{},",":{"docs":{},"详":{"docs":{},"情":{"docs":{},"参":{"docs":{},"见":{"docs":{},"类":{"docs":{},"型":{"docs":{},"安":{"docs":{},"全":{"docs":{},"和":{"docs":{},"类":{"docs":{},"型":{"docs":{},"推":{"docs":{},"断":{"docs":{},"(":{"docs":{},"待":{"docs":{},"添":{"docs":{},"加":{"docs":{},"链":{"docs":{},"接":{"docs":{},")":{"docs":{},"。":{"docs":{},"在":{"docs":{},"上":{"docs":{},"面":{"docs":{},"的":{"docs":{},"例":{"docs":{},"子":{"docs":{},"中":{"docs":{},",":{"docs":{},"没":{"docs":{},"有":{"docs":{},"给":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"用":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"插":{"docs":{},"值":{"docs":{},"(":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}},"统":{"docs":{},"一":{"docs":{},"的":{"docs":{},"函":{"docs":{},"数":{"docs":{},"语":{"docs":{},"法":{"docs":{},"足":{"docs":{},"够":{"docs":{},"灵":{"docs":{},"活":{"docs":{},",":{"docs":{},"可":{"docs":{},"以":{"docs":{},"用":{"docs":{},"来":{"docs":{},"表":{"docs":{},"示":{"docs":{},"任":{"docs":{},"何":{"docs":{},"函":{"docs":{},"数":{"docs":{},",":{"docs":{},"包":{"docs":{},"括":{"docs":{},"从":{"docs":{},"最":{"docs":{},"简":{"docs":{},"单":{"docs":{},"的":{"docs":{},"没":{"docs":{},"有":{"docs":{},"参":{"docs":{},"数":{"docs":{},"名":{"docs":{},"字":{"docs":{},"的":{"docs":{},"c":{"docs":{},"风":{"docs":{},"格":{"docs":{},"函":{"docs":{},"数":{"docs":{},",":{"docs":{},"到":{"docs":{},"复":{"docs":{},"杂":{"docs":{},"的":{"docs":{},"带":{"docs":{},"局":{"docs":{},"部":{"docs":{},"和":{"docs":{},"外":{"docs":{},"部":{"docs":{},"参":{"docs":{},"数":{"docs":{},"名":{"docs":{},"的":{"docs":{},"o":{"docs":{},"b":{"docs":{},"j":{"docs":{},"e":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"v":{"docs":{},"e":{"docs":{},"-":{"docs":{},"c":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.005875440658049354}},"中":{"docs":{},"匹":{"docs":{},"配":{"docs":{},"到":{"docs":{},"的":{"docs":{},"子":{"docs":{},"句":{"docs":{},"之":{"docs":{},"后":{"docs":{},",":{"docs":{},"程":{"docs":{},"序":{"docs":{},"会":{"docs":{},"退":{"docs":{},"出":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{},"语":{"docs":{},"句":{"docs":{},",":{"docs":{},"并":{"docs":{},"不":{"docs":{},"会":{"docs":{},"继":{"docs":{},"续":{"docs":{},"向":{"docs":{},"下":{"docs":{},"运":{"docs":{},"行":{"docs":{},",":{"docs":{},"所":{"docs":{},"以":{"docs":{},"不":{"docs":{},"需":{"docs":{},"要":{"docs":{},"在":{"docs":{},"每":{"docs":{},"个":{"docs":{},"子":{"docs":{},"句":{"docs":{},"结":{"docs":{},"尾":{"docs":{},"写":{"docs":{},"b":{"docs":{},"r":{"docs":{},"e":{"docs":{},"a":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"w":{"docs":{},"i":{"docs":{},"c":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}},"m":{"docs":{},"e":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}},"y":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{},"(":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}},"a":{"docs":{},"g":{"docs":{},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{},"(":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}}}}}}},"。":{"docs":{},"上":{"docs":{},"面":{"docs":{},"的":{"docs":{},"例":{"docs":{},"子":{"docs":{},"展":{"docs":{},"示":{"docs":{},"的":{"docs":{},"是":{"docs":{},"用":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"a":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"和":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"b":{"docs":{},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"函":{"docs":{},"数":{"docs":{},"时":{"docs":{},",":{"docs":{},"在":{"docs":{},"圆":{"docs":{},"括":{"docs":{},"号":{"docs":{},"中":{"docs":{},"传":{"docs":{},"给":{"docs":{},"它":{"docs":{},"一":{"docs":{},"个":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"实":{"docs":{},"参":{"docs":{},"。":{"docs":{},"因":{"docs":{},"为":{"docs":{},"这":{"docs":{},"个":{"docs":{},"函":{"docs":{},"数":{"docs":{},"返":{"docs":{},"回":{"docs":{},"一":{"docs":{},"个":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"值":{"docs":{},",":{"docs":{},"s":{"docs":{},"a":{"docs":{},"y":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{},"可":{"docs":{},"以":{"docs":{},"被":{"docs":{},"包":{"docs":{},"含":{"docs":{},"在":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"l":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"的":{"docs":{},"函":{"docs":{},"数":{"docs":{},"体":{"docs":{},"中":{"docs":{},",":{"docs":{},"先":{"docs":{},"定":{"docs":{},"义":{"docs":{},"了":{"docs":{},"一":{"docs":{},"个":{"docs":{},"新":{"docs":{},"的":{"docs":{},"名":{"docs":{},"为":{"docs":{},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"的":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"常":{"docs":{},"量":{"docs":{},",":{"docs":{},"同":{"docs":{},"时":{"docs":{},"赋":{"docs":{},"值":{"docs":{},"了":{"docs":{},"给":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{},"的":{"docs":{},"一":{"docs":{},"个":{"docs":{},"简":{"docs":{},"单":{"docs":{},"问":{"docs":{},"候":{"docs":{},"消":{"docs":{},"息":{"docs":{},"。":{"docs":{},"然":{"docs":{},"后":{"docs":{},"用":{"docs":{},"r":{"docs":{},"e":{"docs":{},"t":{"docs":{},"u":{"docs":{},"r":{"docs":{},"n":{"docs":{},"关":{"docs":{},"键":{"docs":{},"字":{"docs":{},"把":{"docs":{},"这":{"docs":{},"个":{"docs":{},"问":{"docs":{},"候":{"docs":{},"返":{"docs":{},"回":{"docs":{},"出":{"docs":{},"去":{"docs":{},"。":{"docs":{},"一":{"docs":{},"旦":{"docs":{},"r":{"docs":{},"e":{"docs":{},"t":{"docs":{},"u":{"docs":{},"r":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"c":{"docs":{},"o":{"docs":{},"r":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":1.6777163904235726}}}}}},"e":{"docs":{},"n":{"docs":{},"e":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.02578268876611418}},".":{"docs":{},"h":{"docs":{},"a":{"docs":{},"s":{"docs":{},"p":{"docs":{},"r":{"docs":{},"e":{"docs":{},"f":{"docs":{},"i":{"docs":{},"x":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}}}}}}}}},"e":{"docs":{},"c":{"docs":{},"o":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"l":{"docs":{},"o":{"docs":{},"o":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}}}}}}}}}},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"l":{"docs":{},"f":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},".":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}},"被":{"docs":{},"用":{"docs":{},"来":{"docs":{},"区":{"docs":{},"别":{"docs":{},"实":{"docs":{},"例":{"docs":{},"变":{"docs":{},"量":{"docs":{},"。":{"docs":{},"当":{"docs":{},"你":{"docs":{},"创":{"docs":{},"建":{"docs":{},"实":{"docs":{},"例":{"docs":{},"的":{"docs":{},"时":{"docs":{},"候":{"docs":{},",":{"docs":{},"像":{"docs":{},"传":{"docs":{},"入":{"docs":{},"函":{"docs":{},"数":{"docs":{},"参":{"docs":{},"数":{"docs":{},"一":{"docs":{},"样":{"docs":{},"给":{"docs":{},"类":{"docs":{},"传":{"docs":{},"入":{"docs":{},"构":{"docs":{},"造":{"docs":{},"器":{"docs":{},"的":{"docs":{},"参":{"docs":{},"数":{"docs":{},"。":{"docs":{},"每":{"docs":{},"个":{"docs":{},"属":{"docs":{},"性":{"docs":{},"都":{"docs":{},"需":{"docs":{},"要":{"docs":{},"赋":{"docs":{},"值":{"docs":{},"—":{"docs":{},"—":{"docs":{},"无":{"docs":{},"论":{"docs":{},"是":{"docs":{},"通":{"docs":{},"过":{"docs":{},"声":{"docs":{},"明":{"docs":{},"(":{"docs":{},"就":{"docs":{},"像":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},")":{"docs":{},"还":{"docs":{},"是":{"docs":{},"通":{"docs":{},"过":{"docs":{},"构":{"docs":{},"造":{"docs":{},"器":{"docs":{},"(":{"docs":{},"就":{"docs":{},"像":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"q":{"docs":{},"u":{"docs":{},"e":{"docs":{},"n":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}},"r":{"docs":{},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"e":{"docs":{},"s":{"docs":{},"p":{"docs":{},"o":{"docs":{},"n":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},"e":{"docs":{},".":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"o":{"docs":{},"r":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"o":{"docs":{},"u":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}},"r":{"docs":{},"e":{"docs":{},"s":{"docs":{},"u":{"docs":{},"l":{"docs":{},"t":{"docs":{},"(":{"docs":{},"\"":{"6":{"docs":{},":":{"0":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}},"和":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}},"v":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"h":{"docs":{},"a":{"docs":{},"p":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.007050528789659225}},".":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}},"类":{"docs":{},"缺":{"docs":{},"少":{"docs":{},"了":{"docs":{},"一":{"docs":{},"些":{"docs":{},"重":{"docs":{},"要":{"docs":{},"的":{"docs":{},"东":{"docs":{},"西":{"docs":{},":":{"docs":{},"一":{"docs":{},"个":{"docs":{},"构":{"docs":{},"造":{"docs":{},"函":{"docs":{},"数":{"docs":{},"来":{"docs":{},"初":{"docs":{},"始":{"docs":{},"化":{"docs":{},"类":{"docs":{},"实":{"docs":{},"例":{"docs":{},"。":{"docs":{},"使":{"docs":{},"用":{"docs":{},"i":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"o":{"docs":{},"p":{"docs":{},"p":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"l":{"docs":{},"i":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"[":{"1":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}}}}}}}}}}},"u":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.012925969447708578}}}}}}}}}},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"e":{"docs":{},"c":{"docs":{},"l":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.01527614571092832}}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"u":{"docs":{},"c":{"docs":{},"t":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"e":{"docs":{},"时":{"docs":{},"候":{"docs":{},"m":{"docs":{},"u":{"docs":{},"t":{"docs":{},"a":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"关":{"docs":{},"键":{"docs":{},"字":{"docs":{},"用":{"docs":{},"来":{"docs":{},"标":{"docs":{},"记":{"docs":{},"一":{"docs":{},"个":{"docs":{},"会":{"docs":{},"修":{"docs":{},"改":{"docs":{},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},"的":{"docs":{},"方":{"docs":{},"法":{"docs":{},"。":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"c":{"docs":{},"l":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"x":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"z":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"(":{"1":{"0":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"docs":{}},"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}},"r":{"docs":{},"t":{"docs":{},"(":{"docs":{},"[":{"1":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}}}}},"u":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"p":{"docs":{},"a":{"docs":{},"d":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}}}},"r":{"docs":{},"k":{"docs":{},"l":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}}}}}}},"i":{"docs":{},"c":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.011750881316098707}},"e":{"docs":{},"(":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}}}}}}}}}}}}},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}},"t":{"docs":{},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"r":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.007366482504604052}}},"2":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0282021151586369},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.018292682926829267},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":1.7053406998158378},"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.09523809523809523}},"(":{"docs":{},"s":{"docs":{},"e":{"docs":{},"l":{"docs":{},"f":{"docs":{},".":{"docs":{},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}},"w":{"docs":{},"i":{"docs":{},"d":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}},"”":{"docs":{},"的":{"docs":{},"意":{"docs":{},"思":{"docs":{},"是":{"docs":{},"“":{"docs":{},"可":{"docs":{},"以":{"docs":{},"存":{"docs":{},"储":{"docs":{},"任":{"docs":{},"意":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}},",":{"docs":{},"名":{"docs":{},"字":{"docs":{},"为":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}},"类":{"docs":{},"型":{"docs":{},"安":{"docs":{},"全":{"docs":{},"会":{"docs":{},"阻":{"docs":{},"止":{"docs":{},"你":{"docs":{},"不":{"docs":{},"小":{"docs":{},"心":{"docs":{},"传":{"docs":{},"入":{"docs":{},"一":{"docs":{},"个":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}},"p":{"docs":{},"l":{"docs":{},"u":{"docs":{},"s":{"docs":{},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}},"u":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}},"u":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}},"u":{"docs":{},"c":{"docs":{},"c":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},".":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"添":{"docs":{},"加":{"docs":{},"一":{"docs":{},"个":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{},"o":{"docs":{},"r":{"docs":{},"方":{"docs":{},"法":{"docs":{},",":{"docs":{},"对":{"docs":{},"s":{"docs":{},"p":{"docs":{},"a":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"和":{"docs":{},"c":{"docs":{},"l":{"docs":{},"u":{"docs":{},"b":{"docs":{},"s":{"docs":{},"返":{"docs":{},"回":{"docs":{},"“":{"docs":{},"b":{"docs":{},"l":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"”":{"docs":{},",":{"docs":{},"对":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{},"s":{"docs":{},"和":{"docs":{},"d":{"docs":{},"i":{"docs":{},"a":{"docs":{},"m":{"docs":{},"o":{"docs":{},"n":{"docs":{},"d":{"docs":{},"s":{"docs":{},"返":{"docs":{},"回":{"docs":{},"“":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}},"o":{"docs":{},"f":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"(":{"4":{"2":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}},"n":{"docs":{},"r":{"docs":{},"i":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}}},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},".":{"docs":{},"i":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{},"(":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}}}},"n":{"docs":{},"a":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}},"y":{"docs":{},"n":{"docs":{},"t":{"docs":{},"a":{"docs":{},"x":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}},"u":{"0":{"0":{"0":{"1":{"docs":{},"f":{"4":{"9":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}},"2":{"6":{"6":{"5":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}},"n":{"docs":{},"d":{"docs":{},"e":{"docs":{},"f":{"docs":{},"i":{"docs":{},"n":{"docs":{},"e":{"docs":{},"d":{"docs":{},"u":{"docs":{},"n":{"docs":{},"d":{"docs":{},"e":{"docs":{},"f":{"docs":{},"i":{"docs":{},"n":{"docs":{"index.html#gitbook_1366":{"ref":"index.html#gitbook_1366","tf":0.1111111111111111},"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter1/chapter1.html#gitbook_1369":{"ref":"chapter1/chapter1.html#gitbook_1369","tf":0.25},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013},"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808},"chapter2/09_Classes_and_Structures.html#gitbook_1378":{"ref":"chapter2/09_Classes_and_Structures.html#gitbook_1378","tf":1},"chapter2/chapter2.html#gitbook_1393":{"ref":"chapter2/chapter2.html#gitbook_1393","tf":0.3333333333333333}}}}}}}}}}}}}}}},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":1.731123388581952}},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}},"v":{"docs":{},"i":{"docs":{},"e":{"docs":{},"w":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}}}}}}}}}},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"u":{"docs":{},"s":{"docs":{},"u":{"docs":{},"a":{"docs":{},"l":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"a":{"docs":{},"g":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}}}}}}}}},".":{"docs":{},"g":{"docs":{},"e":{"docs":{},"n":{"docs":{},"e":{"docs":{},"r":{"docs":{},"a":{"docs":{},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{},"e":{"docs":{},".":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"n":{"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{},"t":{"1":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"docs":{}},"3":{"2":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"8":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.018292682926829267},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},".":{"docs":{},"m":{"docs":{},"a":{"docs":{},"x":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}},"i":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}},"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513}},"。":{"docs":{},"如":{"docs":{},"果":{"docs":{},"不":{"docs":{},"是":{"docs":{},"这":{"docs":{},"种":{"docs":{},"情":{"docs":{},"况":{"docs":{},",":{"docs":{},"最":{"docs":{},"好":{"docs":{},"使":{"docs":{},"用":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},",":{"docs":{},"即":{"docs":{},"使":{"docs":{},"要":{"docs":{},"存":{"docs":{},"储":{"docs":{},"的":{"docs":{},"值":{"docs":{},"已":{"docs":{},"知":{"docs":{},"是":{"docs":{},"非":{"docs":{},"负":{"docs":{},"数":{"docs":{},"。":{"docs":{},"使":{"docs":{},"用":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"+":{"0":{"0":{"2":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"6":{"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"docs":{}},"docs":{}},"1":{"docs":{},"f":{"4":{"3":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"docs":{}},"9":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"docs":{}},"docs":{}}},"2":{"6":{"6":{"5":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"docs":{}},"docs":{}},"docs":{},"d":{"8":{"3":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}},"docs":{}},"docs":{},"c":{"3":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"docs":{}}}},"p":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"c":{"docs":{},"a":{"docs":{},"s":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}},"s":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"t":{"docs":{},"f":{"1":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}},"c":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}},"v":{"docs":{},"i":{"docs":{},"e":{"docs":{},"w":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}},"docs":{}},"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}},"v":{"docs":{},"i":{"docs":{},"e":{"docs":{},"w":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}},"docs":{},"-":{"1":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.014732965009208104}}},"docs":{}},"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.014732965009208104}},"u":{"docs":{},"t":{"docs":{},"f":{"docs":{},"-":{"1":{"6":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":1.6666666666666665}}}}}}}}},"docs":{}},"docs":{}}}}}},"docs":{}}}}},"w":{"docs":{},"w":{"docs":{},"d":{"docs":{},"c":{"docs":{"index.html#gitbook_1366":{"ref":"index.html#gitbook_1366","tf":0.1111111111111111}}}}},"o":{"docs":{},"r":{"docs":{},"l":{"docs":{},"d":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"k":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}},"a":{"docs":{},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"c":{"docs":{},"r":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}},"h":{"docs":{},"e":{"docs":{},"r":{"docs":{},"e":{"docs":{},",":{"docs":{},"只":{"docs":{},"在":{"docs":{},"冒":{"docs":{},"号":{"docs":{},"后":{"docs":{},"面":{"docs":{},"写":{"docs":{},"接":{"docs":{},"口":{"docs":{},"或":{"docs":{},"者":{"docs":{},"类":{"docs":{},"名":{"docs":{},"。":{"docs":{},"&":{"docs":{},"l":{"docs":{},"t":{"docs":{},";":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"s":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}},"i":{"docs":{},"d":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"l":{"docs":{},"a":{"docs":{},"b":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}},"l":{"docs":{},"l":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"和":{"docs":{},"d":{"docs":{},"i":{"docs":{},"d":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}},"s":{"docs":{},"e":{"docs":{},"w":{"docs":{},"o":{"docs":{},"r":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.018292682926829267}},"e":{"docs":{},"变":{"docs":{},"量":{"docs":{},"添":{"docs":{},"加":{"docs":{},"了":{"docs":{},"类":{"docs":{},"型":{"docs":{},"标":{"docs":{},"注":{"docs":{},",":{"docs":{},"表":{"docs":{},"示":{"docs":{},"这":{"docs":{},"个":{"docs":{},"变":{"docs":{},"量":{"docs":{},"可":{"docs":{},"以":{"docs":{},"存":{"docs":{},"储":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"'":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}},"r":{"docs":{},"i":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}},"a":{"docs":{},"r":{"docs":{},"c":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808}}},"e":{"docs":{},"a":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"r":{"docs":{},"a":{"docs":{},"y":{"docs":{},"和":{"docs":{},"d":{"docs":{},"i":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}},"g":{"docs":{},"u":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}},"u":{"docs":{},"t":{"docs":{},"o":{"docs":{},"m":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808}}}}}}}},".":{"docs":{},"a":{"docs":{},"d":{"docs":{},"j":{"docs":{},"u":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},"e":{"docs":{},".":{"docs":{},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}},"t":{"1":{"docs":{},"s":{"docs":{},"c":{"docs":{},"e":{"docs":{},"n":{"docs":{},"e":{"docs":{},"c":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}}}}}}}}},"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.02394106813996317}}}},"d":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}},"o":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"e":{"docs":{},"(":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}},"j":{"docs":{},"u":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.007050528789659225}}}}}}},"m":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"n":{"docs":{},"o":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"e":{"docs":{},"r":{"docs":{},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"y":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}}},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"y":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{},"m":{"docs":{},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"s":{"docs":{},"(":{"docs":{},"[":{"1":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}}}}}}}}}}}}}}}}}},"n":{"docs":{},"a":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.047619047619047616}}}}},"p":{"docs":{},"p":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},"e":{"docs":{},"s":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"u":{"docs":{},"m":{"docs":{},"m":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}},"l":{"docs":{},"i":{"docs":{},"k":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}},"s":{"docs":{},"c":{"docs":{},"i":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}},"g":{"docs":{},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.047619047619047616}}}}}}},"c":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.042682926829268296},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"o":{"docs":{},"c":{"docs":{},"o":{"docs":{},"a":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.07142857142857142},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.01289134438305709}},"的":{"docs":{},"基":{"docs":{},"础":{"docs":{},"上":{"docs":{},"构":{"docs":{},"建":{"docs":{},"框":{"docs":{},"架":{"docs":{},"栈":{"docs":{},"并":{"docs":{},"将":{"docs":{},"其":{"docs":{},"标":{"docs":{},"准":{"docs":{},"化":{"docs":{},"。":{"docs":{},"o":{"docs":{},"b":{"docs":{},"j":{"docs":{},"e":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"v":{"docs":{},"e":{"docs":{},"-":{"docs":{},"c":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"里":{"docs":{},"的":{"docs":{},"n":{"docs":{},"s":{"docs":{},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{},"函":{"docs":{},"数":{"docs":{},"一":{"docs":{},"样":{"docs":{},",":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"l":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}}}}},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}},".":{"docs":{},"i":{"docs":{},"n":{"docs":{},"c":{"docs":{},"r":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"b":{"docs":{},"y":{"docs":{},"(":{"2":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}}}}}}}}}}}}}}},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"s":{"docs":{},"(":{"docs":{},"u":{"docs":{},"n":{"docs":{},"u":{"docs":{},"s":{"docs":{},"u":{"docs":{},"a":{"docs":{},"l":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"a":{"docs":{},"g":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"n":{"docs":{},"d":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"(":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"t":{"docs":{},"e":{"docs":{},"d":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}},"t":{"docs":{},"a":{"docs":{},"n":{"docs":{},"t":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}}}},"m":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.03048780487804878}}}}}},"p":{"docs":{},"i":{"docs":{},"l":{"docs":{},"e":{"docs":{},"-":{"docs":{},"t":{"docs":{},"i":{"docs":{},"m":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}},"的":{"docs":{},"兼":{"docs":{},"容":{"docs":{},"性":{"docs":{},"的":{"docs":{},"限":{"docs":{},"制":{"docs":{},"。":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808}}}}}}}}}}}}}}},"a":{"docs":{},"p":{"docs":{},"t":{"docs":{},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"u":{"docs":{},"l":{"docs":{},"e":{"docs":{},"t":{"docs":{},"'":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.01289134438305709}}}}}}}},"r":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"(":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"添":{"docs":{},"加":{"docs":{},"一":{"docs":{},"个":{"docs":{},"方":{"docs":{},"法":{"docs":{},",":{"docs":{},"创":{"docs":{},"建":{"docs":{},"一":{"docs":{},"副":{"docs":{},"完":{"docs":{},"整":{"docs":{},"的":{"docs":{},"扑":{"docs":{},"克":{"docs":{},"牌":{"docs":{},"并":{"docs":{},"把":{"docs":{},"每":{"docs":{},"张":{"docs":{},"牌":{"docs":{},"的":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{},"和":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}},"s":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.024676850763807285}}}},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}},"f":{"docs":{},"i":{"docs":{},"s":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}},"h":{"docs":{},"e":{"docs":{},"e":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.022099447513812154}},"e":{"docs":{},"r":{"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.009208103130755065}}},"2":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"docs":{},"p":{"docs":{},"l":{"docs":{},"u":{"docs":{},"s":{"docs":{},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"s":{"docs":{},")":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"字":{"docs":{},"面":{"docs":{},"量":{"docs":{},"初":{"docs":{},"始":{"docs":{},"化":{"docs":{},"空":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"可":{"docs":{},"变":{"docs":{},"性":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"是":{"docs":{},"值":{"docs":{},"类":{"docs":{},"型":{"docs":{},"使":{"docs":{},"用":{"docs":{},"字":{"docs":{},"符":{"docs":{},"(":{"docs":{},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},")":{"docs":{},"计":{"docs":{},"算":{"docs":{},"字":{"docs":{},"符":{"docs":{},"数":{"docs":{},"量":{"docs":{},"连":{"docs":{},"接":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"和":{"docs":{},"字":{"docs":{},"符":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"插":{"docs":{},"值":{"docs":{},"比":{"docs":{},"较":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"相":{"docs":{},"等":{"docs":{},"前":{"docs":{},"缀":{"docs":{},"/":{"docs":{},"后":{"docs":{},"缀":{"docs":{},"相":{"docs":{},"等":{"docs":{},"大":{"docs":{},"写":{"docs":{},"和":{"docs":{},"小":{"docs":{},"写":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":1.6666666666666665}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"l":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.010575793184488837}}}}},"u":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}},"u":{"docs":{},"c":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"r":{"docs":{},"r":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513}},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{},"i":{"docs":{},"n":{"docs":{},"a":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}},"f":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"d":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"r":{"docs":{},"-":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}}},"a":{"docs":{},"i":{"docs":{},"l":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}},"l":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}},"i":{"docs":{},"b":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"c":{"docs":{},"c":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}},"r":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513}},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"l":{"docs":{},"o":{"docs":{},"o":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}}}}}}}}},"v":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"l":{"docs":{},"o":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"并":{"docs":{},"指":{"docs":{},"定":{"docs":{},"初":{"docs":{},"始":{"docs":{},"值":{"docs":{},"为":{"4":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}}}}}}}},"表":{"docs":{},"示":{"3":{"2":{"docs":{},"位":{"docs":{},"浮":{"docs":{},"点":{"docs":{},"数":{"docs":{},"。":{"docs":{},"当":{"docs":{},"浮":{"docs":{},"点":{"docs":{},"值":{"docs":{},"不":{"docs":{},"需":{"docs":{},"要":{"docs":{},"使":{"docs":{},"用":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}},"r":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"s":{"docs":{},"u":{"docs":{},"m":{"docs":{},"m":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}},"i":{"docs":{},"e":{"docs":{},"n":{"docs":{},"d":{"docs":{},"l":{"docs":{},"y":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.036585365853658534}},"e":{"docs":{},"的":{"docs":{},"值":{"docs":{},"从":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{},"!":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"改":{"docs":{},"为":{"docs":{},"了":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"b":{"docs":{},"o":{"docs":{},"n":{"docs":{},"j":{"docs":{},"o":{"docs":{},"u":{"docs":{},"r":{"docs":{},"!":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}},"u":{"docs":{},"n":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0282021151586369},"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.047619047619047616}},"来":{"docs":{},"声":{"docs":{},"明":{"docs":{},"一":{"docs":{},"个":{"docs":{},"函":{"docs":{},"数":{"docs":{},",":{"docs":{},"使":{"docs":{},"用":{"docs":{},"名":{"docs":{},"字":{"docs":{},"和":{"docs":{},"参":{"docs":{},"数":{"docs":{},"来":{"docs":{},"调":{"docs":{},"用":{"docs":{},"函":{"docs":{},"数":{"docs":{},"。":{"docs":{},"使":{"docs":{},"用":{"docs":{},"-":{"docs":{},"&":{"docs":{},"g":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":10.023809523809524}}}}}},"作":{"docs":{},"为":{"docs":{},"前":{"docs":{},"缀":{"docs":{},"。":{"docs":{},"指":{"docs":{},"定":{"docs":{},"函":{"docs":{},"数":{"docs":{},"返":{"docs":{},"回":{"docs":{},"类":{"docs":{},"型":{"docs":{},"时":{"docs":{},",":{"docs":{},"用":{"docs":{},"返":{"docs":{},"回":{"docs":{},"箭":{"docs":{},"头":{"docs":{},"-":{"docs":{},"&":{"docs":{},"g":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.005875440658049354},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.007366482504604052},"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.11904761904761904}}}},"p":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},"s":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}},"成":{"docs":{},"员":{"docs":{},":":{"docs":{},"给":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{},"s":{"docs":{},"常":{"docs":{},"量":{"docs":{},"赋":{"docs":{},"值":{"docs":{},"时":{"docs":{},",":{"docs":{},"枚":{"docs":{},"举":{"docs":{},"成":{"docs":{},"员":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{},".":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{},"s":{"docs":{},"需":{"docs":{},"要":{"docs":{},"用":{"docs":{},"全":{"docs":{},"名":{"docs":{},"来":{"docs":{},"引":{"docs":{},"用":{"docs":{},",":{"docs":{},"因":{"docs":{},"为":{"docs":{},"常":{"docs":{},"量":{"docs":{},"没":{"docs":{},"有":{"docs":{},"显":{"docs":{},"式":{"docs":{},"指":{"docs":{},"定":{"docs":{},"类":{"docs":{},"型":{"docs":{},"。":{"docs":{},"在":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{},"里":{"docs":{},",":{"docs":{},"枚":{"docs":{},"举":{"docs":{},"成":{"docs":{},"员":{"docs":{},"使":{"docs":{},"用":{"docs":{},"缩":{"docs":{},"写":{"docs":{},".":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{},"s":{"docs":{},"来":{"docs":{},"引":{"docs":{},"用":{"docs":{},",":{"docs":{},"因":{"docs":{},"为":{"docs":{},"s":{"docs":{},"e":{"docs":{},"l":{"docs":{},"f":{"docs":{},"的":{"docs":{},"值":{"docs":{},"已":{"docs":{},"经":{"docs":{},"知":{"docs":{},"道":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"e":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}},"a":{"docs":{},"s":{"docs":{},"a":{"docs":{},"n":{"docs":{},"y":{"docs":{},"m":{"docs":{},"a":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{},"e":{"docs":{},"s":{"docs":{},"(":{"docs":{},"l":{"docs":{},"i":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"p":{"docs":{},"r":{"docs":{},"e":{"docs":{},"f":{"docs":{},"i":{"docs":{},"x":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"/":{"docs":{},"h":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{},"u":{"docs":{},"f":{"docs":{},"f":{"docs":{},"i":{"docs":{},"x":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}}}}}}},"l":{"docs":{},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}},"i":{"docs":{},"g":{"docs":{},"h":{"docs":{},"l":{"docs":{},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}},"o":{"docs":{},"r":{"docs":{},"s":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}},"i":{"docs":{},"o":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.047619047619047616},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"f":{"docs":{},"和":{"docs":{},"l":{"docs":{},"e":{"docs":{},"t":{"docs":{},"来":{"docs":{},"处":{"docs":{},"理":{"docs":{},"值":{"docs":{},"缺":{"docs":{},"失":{"docs":{},"的":{"docs":{},"情":{"docs":{},"况":{"docs":{},"。":{"docs":{},"有":{"docs":{},"些":{"docs":{},"变":{"docs":{},"量":{"docs":{},"的":{"docs":{},"值":{"docs":{},"是":{"docs":{},"可":{"docs":{},"选":{"docs":{},"的":{"docs":{},"。":{"docs":{},"一":{"docs":{},"个":{"docs":{},"可":{"docs":{},"选":{"docs":{},"的":{"docs":{},"值":{"docs":{},"可":{"docs":{},"能":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"具":{"docs":{},"体":{"docs":{},"的":{"docs":{},"值":{"docs":{},"或":{"docs":{},"者":{"docs":{},"是":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{},"来":{"docs":{},"进":{"docs":{},"行":{"docs":{},"条":{"docs":{},"件":{"docs":{},"操":{"docs":{},"作":{"docs":{},",":{"docs":{},"使":{"docs":{},"用":{"docs":{},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"-":{"docs":{},"i":{"docs":{},"n":{"docs":{},"、":{"docs":{},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"、":{"docs":{},"w":{"docs":{},"h":{"docs":{},"i":{"docs":{},"l":{"docs":{},"e":{"docs":{},"和":{"docs":{},"d":{"docs":{},"o":{"docs":{},"-":{"docs":{},"w":{"docs":{},"h":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"语":{"docs":{},"句":{"docs":{},"中":{"docs":{},",":{"docs":{},"条":{"docs":{},"件":{"docs":{},"必":{"docs":{},"须":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"布":{"docs":{},"尔":{"docs":{},"表":{"docs":{},"达":{"docs":{},"式":{"docs":{},"—":{"docs":{},"—":{"docs":{},"这":{"docs":{},"意":{"docs":{},"味":{"docs":{},"着":{"docs":{},"像":{"docs":{},"i":{"docs":{},"f":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"i":{"docs":{},"c":{"docs":{},"i":{"docs":{},"t":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}},"o":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}},"a":{"docs":{},"g":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}},"n":{"docs":{},"c":{"docs":{},"r":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"(":{"7":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}},"b":{"docs":{},"y":{"docs":{},"(":{"docs":{},"a":{"docs":{},"m":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}},"d":{"docs":{},"i":{"docs":{},"v":{"docs":{},"i":{"docs":{},"d":{"docs":{},"u":{"docs":{},"a":{"docs":{},"l":{"docs":{},"s":{"docs":{},"c":{"docs":{},"o":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}}},"i":{"docs":{},"t":{"docs":{},"(":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.024676850763807285},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513}},"e":{"docs":{},"r":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}},"p":{"docs":{},"o":{"docs":{},"l":{"docs":{},"a":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},")":{"docs":{},"的":{"docs":{},"方":{"docs":{},"式":{"docs":{},"把":{"docs":{},"常":{"docs":{},"量":{"docs":{},"名":{"docs":{},"或":{"docs":{},"者":{"docs":{},"变":{"docs":{},"量":{"docs":{},"名":{"docs":{},"当":{"docs":{},"做":{"docs":{},"占":{"docs":{},"位":{"docs":{},"符":{"docs":{},"加":{"docs":{},"入":{"docs":{},"到":{"docs":{},"长":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"中":{"docs":{},",":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{},"会":{"docs":{},"用":{"docs":{},"当":{"docs":{},"前":{"docs":{},"常":{"docs":{},"量":{"docs":{},"或":{"docs":{},"变":{"docs":{},"量":{"docs":{},"的":{"docs":{},"值":{"docs":{},"替":{"docs":{},"换":{"docs":{},"这":{"docs":{},"些":{"docs":{},"占":{"docs":{},"位":{"docs":{},"符":{"docs":{},"。":{"docs":{},"将":{"docs":{},"常":{"docs":{},"量":{"docs":{},"或":{"docs":{},"变":{"docs":{},"量":{"docs":{},"名":{"docs":{},"放":{"docs":{},"入":{"docs":{},"反":{"docs":{},"斜":{"docs":{},"杠":{"docs":{},"符":{"docs":{},"加":{"docs":{},"一":{"docs":{},"对":{"docs":{},"圆":{"docs":{},"括":{"docs":{},"号":{"docs":{},"中":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"\\":{"docs":{},"(":{"docs":{},")":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":10}}}}}},"是":{"docs":{},"整":{"docs":{},"型":{"docs":{},";":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"和":{"docs":{},"f":{"docs":{},"l":{"docs":{},"o":{"docs":{},"a":{"docs":{},"t":{"docs":{},"是":{"docs":{},"浮":{"docs":{},"点":{"docs":{},"型":{"docs":{},";":{"docs":{},"b":{"docs":{},"o":{"docs":{},"o":{"docs":{},"l":{"docs":{},"是":{"docs":{},"布":{"docs":{},"尔":{"docs":{},"型":{"docs":{},";":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"是":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"。":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"类":{"docs":{},"型":{"docs":{},"更":{"docs":{},"大":{"docs":{},"或":{"docs":{},"者":{"docs":{},"更":{"docs":{},"小":{"docs":{},"的":{"docs":{},"数":{"docs":{},"字":{"docs":{},"。":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}}}}}},",":{"docs":{},"除":{"docs":{},"非":{"docs":{},"你":{"docs":{},"需":{"docs":{},"要":{"docs":{},"指":{"docs":{},"定":{"docs":{},"整":{"docs":{},"数":{"docs":{},"长":{"docs":{},"度":{"docs":{},"。":{"docs":{},"这":{"docs":{},"可":{"docs":{},"以":{"docs":{},"保":{"docs":{},"证":{"docs":{},"代":{"docs":{},"码":{"docs":{},"的":{"docs":{},"一":{"docs":{},"致":{"docs":{},"性":{"docs":{},"和":{"docs":{},"可":{"docs":{},"复":{"docs":{},"用":{"docs":{},"性":{"docs":{},"。":{"docs":{},"即":{"docs":{},"使":{"docs":{},"在":{"3":{"2":{"docs":{},"位":{"docs":{},"平":{"docs":{},"台":{"docs":{},"上":{"docs":{},",":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"也":{"docs":{},"可":{"docs":{},"以":{"docs":{},"存":{"docs":{},"储":{"docs":{},"范":{"docs":{},"围":{"docs":{},"为":{"docs":{},"-":{"2":{"1":{"4":{"7":{"4":{"8":{"3":{"6":{"4":{"8":{"docs":{},"~":{"2":{"1":{"4":{"7":{"4":{"8":{"3":{"6":{"4":{"7":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"u":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}}}}},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}}}}},"s":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"o":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}},"b":{"docs":{},"j":{"docs":{},"e":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"v":{"docs":{},"e":{"docs":{},"-":{"docs":{},"c":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.09523809523809523},"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.03048780487804878},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}}}}},"s":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.047619047619047616},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"c":{"docs":{},"c":{"docs":{},"u":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"a":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"s":{"docs":{},"[":{"docs":{},"\"":{"docs":{},"j":{"docs":{},"a":{"docs":{},"y":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}},"a":{"docs":{},"l":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"e":{"docs":{},"改":{"docs":{},"成":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{},",":{"docs":{},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"会":{"docs":{},"是":{"docs":{},"什":{"docs":{},"么":{"docs":{},"?":{"docs":{},"添":{"docs":{},"加":{"docs":{},"一":{"docs":{},"个":{"docs":{},"e":{"docs":{},"l":{"docs":{},"s":{"docs":{},"e":{"docs":{},"语":{"docs":{},"句":{"docs":{},",":{"docs":{},"当":{"docs":{},"o":{"docs":{},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"l":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{},"是":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{},"时":{"docs":{},"给":{"docs":{},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"e":{"docs":{},"?":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{},"e":{"docs":{},"<":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}},"r":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"e":{"docs":{},"标":{"docs":{},"记":{"docs":{},"—":{"docs":{},"—":{"docs":{},"如":{"docs":{},"果":{"docs":{},"没":{"docs":{},"有":{"docs":{},"添":{"docs":{},"加":{"docs":{},"o":{"docs":{},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"就":{"docs":{},"重":{"docs":{},"写":{"docs":{},"父":{"docs":{},"类":{"docs":{},"方":{"docs":{},"法":{"docs":{},"的":{"docs":{},"话":{"docs":{},"编":{"docs":{},"译":{"docs":{},"器":{"docs":{},"会":{"docs":{},"报":{"docs":{},"错":{"docs":{},"。":{"docs":{},"编":{"docs":{},"译":{"docs":{},"器":{"docs":{},"同":{"docs":{},"样":{"docs":{},"会":{"docs":{},"检":{"docs":{},"测":{"docs":{},"o":{"docs":{},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"u":{"docs":{},"t":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}}}},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"e":{"docs":{},"f":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808}}}}},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}},"l":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"p":{"docs":{},"e":{"docs":{},"a":{"docs":{},"t":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"k":{"docs":{},"n":{"docs":{},"o":{"docs":{},"c":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}},"<":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{},"e":{"docs":{},">":{"docs":{},"(":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"u":{"docs":{},"l":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.005875440658049354}},"(":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"u":{"docs":{},"n":{"docs":{},"r":{"docs":{},"i":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}},"t":{"docs":{},"u":{"docs":{},"r":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.03525264394829612},"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.047619047619047616}},"f":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{},"e":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}}},"a":{"docs":{},"i":{"docs":{},"s":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"n":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},".":{"docs":{},"a":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"f":{"docs":{},"r":{"docs":{},"o":{"docs":{},"m":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{},"(":{"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"docs":{}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"s":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"o":{"docs":{},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"j":{"docs":{},"u":{"docs":{},"l":{"docs":{},"i":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}}}}}}},"o":{"docs":{},"m":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"o":{"docs":{},"u":{"docs":{},"c":{"docs":{},"h":{"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.023809523809523808},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}},"d":{"docs":{},"a":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{},"和":{"docs":{},"f":{"docs":{},"r":{"docs":{},"o":{"docs":{},"m":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}},".":{"docs":{},"g":{"docs":{},"e":{"docs":{},"n":{"docs":{},"e":{"docs":{},"r":{"docs":{},"a":{"docs":{},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{},"e":{"docs":{},".":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}}}}}}}},"a":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"e":{"docs":{},"a":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"m":{"docs":{},"s":{"docs":{},"c":{"docs":{},"o":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}}}}}}}},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}},".":{"docs":{},"a":{"docs":{},"r":{"docs":{},"e":{"docs":{},"a":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"m":{"docs":{},"i":{"docs":{},"n":{"docs":{},"o":{"docs":{},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":1.6685082872928176}}}}}}}}}}},"h":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"p":{"docs":{},"a":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"e":{"docs":{},"s":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"g":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"n":{"docs":{},"g":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},"e":{"docs":{},".":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"s":{"docs":{},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"e":{"docs":{},"(":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},".":{"docs":{},"s":{"docs":{},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"e":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{},"l":{"docs":{},"e":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"u":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}},"u":{"docs":{},"e":{"docs":{},"s":{"docs":{},"d":{"docs":{},"a":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"l":{"docs":{},"i":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"p":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}},"w":{"docs":{},"o":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}},"y":{"docs":{},"p":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}},"x":{"2":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"docs":{"chapter1/01_swift.html#gitbook_1367":{"ref":"chapter1/01_swift.html#gitbook_1367","tf":0.047619047619047616},"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.018292682926829267}},".":{"docs":{},"h":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{},"u":{"docs":{},"f":{"docs":{},"f":{"docs":{},"i":{"docs":{},"x":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"p":{"docs":{},"e":{"docs":{},"p":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},".":{"docs":{},"a":{"docs":{},"d":{"docs":{},"j":{"docs":{},"u":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}},"l":{"docs":{},"u":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}},"o":{"docs":{},"o":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}},"e":{"docs":{},"a":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}},"t":{"docs":{},"t":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"n":{"docs":{},"j":{"docs":{},"o":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.024390243902439025}}}}}}}},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}},"a":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}},"e":{"docs":{},"f":{"docs":{},"a":{"docs":{},"u":{"docs":{},"l":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}}}},"i":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"i":{"docs":{},"a":{"docs":{},"m":{"docs":{},"o":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}}}},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"r":{"docs":{},"y":{"docs":{},"<":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.012925969447708578}},"e":{"docs":{},"类":{"docs":{},"型":{"docs":{},"写":{"docs":{},"一":{"docs":{},"个":{"docs":{},"扩":{"docs":{},"展":{"docs":{},",":{"docs":{},"添":{"docs":{},"加":{"docs":{},"a":{"docs":{},"b":{"docs":{},"s":{"docs":{},"o":{"docs":{},"l":{"docs":{},"u":{"docs":{},"t":{"docs":{},"e":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}},"的":{"docs":{},"准":{"docs":{},"确":{"docs":{},"程":{"docs":{},"度":{"docs":{},"是":{"docs":{},"至":{"docs":{},"少":{"1":{"5":{"docs":{},"个":{"docs":{},"十":{"docs":{},"进":{"docs":{},"制":{"docs":{},"数":{"docs":{},"字":{"docs":{},",":{"docs":{},"而":{"docs":{},"f":{"docs":{},"l":{"docs":{},"o":{"docs":{},"a":{"docs":{},"t":{"docs":{},"的":{"docs":{},"准":{"docs":{},"确":{"docs":{},"程":{"docs":{},"度":{"docs":{},"是":{"docs":{},"至":{"docs":{},"少":{"6":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}}}}}}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}},"表":{"docs":{},"示":{"6":{"4":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}},"docs":{}}},"(":{"docs":{},"m":{"docs":{},"u":{"docs":{},"l":{"docs":{},"t":{"docs":{},"i":{"docs":{},"p":{"docs":{},"l":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}}}}}}}}}}},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}},"c":{"docs":{},"o":{"docs":{},"w":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},".":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}}}}}}},"t":{"docs":{},"f":{"1":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}}}}}}}}}}}},"l":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{},"s":{"docs":{},"i":{"docs":{},"g":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"、":{"docs":{},"b":{"docs":{},"l":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"d":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}},"e":{"docs":{},"i":{"docs":{},"g":{"docs":{},"h":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"n":{"docs":{},"s":{"docs":{},"t":{"docs":{},"e":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"y":{"docs":{},"a":{"docs":{},"r":{"docs":{},"r":{"docs":{},"a":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"d":{"docs":{},"i":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},".":{"docs":{},"i":{"docs":{},"s":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}}}}},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.005875440658049354}},"e":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}},"d":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"&":{"docs":{},"g":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},";":{"docs":{},"和":{"docs":{},"&":{"docs":{},"l":{"docs":{},"t":{"docs":{},";":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}},"i":{"docs":{},"l":{"docs":{},"a":{"docs":{},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"a":{"docs":{},"l":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}},"e":{"docs":{},"(":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"r":{"docs":{},"o":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"(":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"o":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"y":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}},"x":{"docs":{},"a":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"t":{"docs":{},"o":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.005875440658049354}}}}}}}}}}}}}}},"p":{"docs":{},"l":{"docs":{},"i":{"docs":{},"c":{"docs":{},"i":{"docs":{},"t":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}},"t":{"docs":{},"e":{"docs":{},"n":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}},"e":{"docs":{},"t":{"docs":{},"g":{"docs":{},"a":{"docs":{},"s":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"s":{"docs":{},"和":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}},"o":{"docs":{},"o":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414},"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.047619047619047616}},"(":{"docs":{},"\"":{"docs":{},"b":{"docs":{},"o":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"被":{"docs":{},"调":{"docs":{},"用":{"docs":{},",":{"docs":{},"该":{"docs":{},"函":{"docs":{},"数":{"docs":{},"结":{"docs":{},"束":{"docs":{},"它":{"docs":{},"的":{"docs":{},"执":{"docs":{},"行":{"docs":{},"并":{"docs":{},"返":{"docs":{},"回":{"docs":{},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}},"a":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}},"j":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}},"o":{"docs":{},"h":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"k":{"docs":{},"a":{"docs":{},"y":{"docs":{},"l":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"e":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"i":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}},"n":{"docs":{},"o":{"docs":{},"w":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}}},"o":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.005875440658049354}},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}},"k":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"i":{"docs":{},"n":{"docs":{},"c":{"docs":{},"r":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"x":{"docs":{},"i":{"docs":{},"m":{"docs":{},"u":{"docs":{},"m":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{},"f":{"docs":{},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{},"i":{"docs":{},"n":{"docs":{},"a":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}},"s":{"docs":{},"或":{"docs":{},"者":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{},"e":{"docs":{},")":{"docs":{},"和":{"docs":{},"一":{"docs":{},"个":{"docs":{},"指":{"docs":{},"定":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"值":{"docs":{},"(":{"docs":{},"比":{"docs":{},"如":{"docs":{},"数":{"docs":{},"字":{"1":{"0":{"docs":{},"或":{"docs":{},"者":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"的":{"docs":{},"新":{"docs":{},"常":{"docs":{},"量":{"docs":{},",":{"docs":{},"并":{"docs":{},"给":{"docs":{},"它":{"docs":{},"一":{"docs":{},"个":{"docs":{},"值":{"1":{"0":{"docs":{},"。":{"docs":{},"然":{"docs":{},"后":{"docs":{},",":{"docs":{},"声":{"docs":{},"明":{"docs":{},"一":{"docs":{},"个":{"docs":{},"名":{"docs":{},"字":{"docs":{},"是":{"docs":{},"c":{"docs":{},"u":{"docs":{},"r":{"docs":{},"r":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{},"i":{"docs":{},"n":{"docs":{},"a":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"的":{"docs":{},"变":{"docs":{},"量":{"docs":{},"并":{"docs":{},"将":{"docs":{},"它":{"docs":{},"的":{"docs":{},"值":{"docs":{},"初":{"docs":{},"始":{"docs":{},"化":{"docs":{},"为":{"0":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513}}}}}}},"n":{"docs":{},"s":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}}}}}}}},"e":{"docs":{},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}},"u":{"docs":{},"t":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}},"l":{"docs":{},"t":{"docs":{},"i":{"docs":{},"l":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.018292682926829267}}}}},"p":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}}}}}}}}},"y":{"docs":{},"c":{"docs":{},"o":{"docs":{},"n":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}},"v":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"整":{"docs":{},"数":{"docs":{},"(":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"n":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513}}}}}},"和":{"docs":{},"m":{"docs":{},"a":{"docs":{},"x":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}}}}},"o":{"docs":{},"r":{"docs":{},"e":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.005875440658049354},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.022326674500587545}},"d":{"docs":{},"s":{"docs":{},"h":{"docs":{},"a":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}},"e":{"docs":{},"的":{"docs":{},"另":{"docs":{},"一":{"docs":{},"个":{"docs":{},"子":{"docs":{},"类":{"docs":{},"c":{"docs":{},"i":{"docs":{},"r":{"docs":{},"c":{"docs":{},"l":{"docs":{},"e":{"docs":{},",":{"docs":{},"构":{"docs":{},"造":{"docs":{},"器":{"docs":{},"接":{"docs":{},"收":{"docs":{},"两":{"docs":{},"个":{"docs":{},"参":{"docs":{},"数":{"docs":{},",":{"docs":{},"一":{"docs":{},"个":{"docs":{},"是":{"docs":{},"半":{"docs":{},"径":{"docs":{},"一":{"docs":{},"个":{"docs":{},"是":{"docs":{},"名":{"docs":{},"称":{"docs":{},",":{"docs":{},"实":{"docs":{},"现":{"docs":{},"a":{"docs":{},"r":{"docs":{},"e":{"docs":{},"a":{"docs":{},"和":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"e":{"docs":{},"w":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}},"e":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}}}}}}}},"。":{"docs":{},"你":{"docs":{},"可":{"docs":{},"以":{"docs":{},"在":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}},"s":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}}},"i":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513}},",":{"docs":{},"?":{"docs":{},"后":{"docs":{},"面":{"docs":{},"的":{"docs":{},"东":{"docs":{},"西":{"docs":{},"都":{"docs":{},"会":{"docs":{},"被":{"docs":{},"忽":{"docs":{},"略":{"docs":{},",":{"docs":{},"并":{"docs":{},"且":{"docs":{},"整":{"docs":{},"个":{"docs":{},"表":{"docs":{},"达":{"docs":{},"式":{"docs":{},"返":{"docs":{},"回":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}},"条":{"docs":{},"件":{"docs":{},"会":{"docs":{},"判":{"docs":{},"断":{"docs":{},"为":{"docs":{},"f":{"docs":{},"a":{"docs":{},"l":{"docs":{},"s":{"docs":{},"e":{"docs":{},",":{"docs":{},"大":{"docs":{},"括":{"docs":{},"号":{"docs":{},"中":{"docs":{},"的":{"docs":{},"代":{"docs":{},"码":{"docs":{},"会":{"docs":{},"被":{"docs":{},"跳":{"docs":{},"过":{"docs":{},"。":{"docs":{},"如":{"docs":{},"果":{"docs":{},"不":{"docs":{},"是":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{},",":{"docs":{},"会":{"docs":{},"将":{"docs":{},"值":{"docs":{},"赋":{"docs":{},"给":{"docs":{},"l":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"n":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}},"w":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}},"r":{"docs":{},"m":{"docs":{},"a":{"docs":{},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},".":{"docs":{},"l":{"docs":{},"o":{"docs":{},"w":{"docs":{},"e":{"docs":{},"r":{"docs":{},"c":{"docs":{},"a":{"docs":{},"s":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}},"u":{"docs":{},"p":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"c":{"docs":{},"a":{"docs":{},"s":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"h":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.01645123384253819}},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.007050528789659225}}}}},"t":{"docs":{},"i":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}}}}}}},"s":{"docs":{},".":{"docs":{},"m":{"docs":{},"a":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}}}}}}}}}}},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"s":{"docs":{},"m":{"docs":{},"u":{"docs":{},"t":{"docs":{},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.01841620626151013}}}}}}}}}},"q":{"docs":{},"u":{"docs":{},"e":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123}}}}},"o":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}},";":{"docs":{},"a":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},")":{"docs":{},",":{"docs":{},"u":{"docs":{},"+":{"1":{"docs":{},"f":{"4":{"2":{"5":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}}},"l":{"docs":{},"b":{"docs":{},"a":{"docs":{},"t":{"docs":{},"r":{"docs":{},"o":{"docs":{},"s":{"docs":{},"s":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"。":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}}}}}}}}}}}}}}}},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}},"":{"docs":{},"":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},",":{"docs":{},"之":{"docs":{},"所":{"docs":{},"以":{"docs":{},"叫":{"docs":{},"这":{"docs":{},"个":{"docs":{},"名":{"docs":{},"字":{"docs":{},"是":{"docs":{},"因":{"docs":{},"为":{"docs":{},"这":{"docs":{},"个":{"docs":{},"函":{"docs":{},"数":{"docs":{},"用":{"docs":{},"一":{"docs":{},"个":{"docs":{},"人":{"docs":{},"的":{"docs":{},"名":{"docs":{},"字":{"docs":{},"当":{"docs":{},"做":{"docs":{},"输":{"docs":{},"入":{"docs":{},",":{"docs":{},"并":{"docs":{},"返":{"docs":{},"回":{"docs":{},"给":{"docs":{},"这":{"docs":{},"个":{"docs":{},"人":{"docs":{},"的":{"docs":{},"问":{"docs":{},"候":{"docs":{},"语":{"docs":{},"。":{"docs":{},"为":{"docs":{},"了":{"docs":{},"完":{"docs":{},"成":{"docs":{},"这":{"docs":{},"个":{"docs":{},"任":{"docs":{},"务":{"docs":{},",":{"docs":{},"你":{"docs":{},"定":{"docs":{},"义":{"docs":{},"一":{"docs":{},"个":{"docs":{},"输":{"docs":{},"入":{"docs":{},"参":{"docs":{},"数":{"docs":{},"-":{"docs":{},"一":{"docs":{},"个":{"docs":{},"叫":{"docs":{},"做":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{},"的":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"值":{"docs":{},",":{"docs":{},"和":{"docs":{},"一":{"docs":{},"个":{"docs":{},"包":{"docs":{},"含":{"docs":{},"给":{"docs":{},"这":{"docs":{},"个":{"docs":{},"人":{"docs":{},"问":{"docs":{},"候":{"docs":{},"语":{"docs":{},"的":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/06_Functions.html#gitbook_1375":{"ref":"chapter2/06_Functions.html#gitbook_1375","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"a":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}},"v":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.04935370152761457},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.024390243902439025},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.011049723756906077}},"i":{"docs":{},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.0055248618784530384}}}}}}}}}}},"l":{"docs":{},"u":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.012195121951219513},"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}},"e":{"docs":{},"g":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0023501762632197414}},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.004700352526439483}}}}}}}}}}}},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0011750881316098707}}},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.003683241252302026}}}}}}}},"y":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_1368":{"ref":"chapter1/02_a_swift_tour.html#gitbook_1368","tf":0.0035252643948296123},"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}},"e":{"docs":{},"n":{"docs":{},"s":{"docs":{},"i":{"docs":{},"g":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_1372":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_1372","tf":0.001841620626151013}}}}}}}}},"z":{"docs":{"chapter2/01_The_Basics.html#gitbook_1371":{"ref":"chapter2/01_The_Basics.html#gitbook_1371","tf":0.006097560975609756}}}},"length":714},"corpusTokens":["0","0..3","0..time","0.0","1","10","100","103","11","111","12","128054","128054,是一个十六进制1f436","13","144","159","16","182","19","2","2.5","20","2014","21","240","25","255","3","3.0","3.1","3.14159","3.14159,0.1和-273.15","3.59","3.69","3.79","32位平台上,int和int32","32位平台上,uint和uint32","33","39","4","40","42","42和23","43","5","5.2","50","55357","56374","597","6","64位平台上,int和int64","64位平台上,uint和uint64","68","69105","7","7.5","7.simpledescript","70","70.0","75","8","87","8:09","8、16、32和64","8位无符号整数类型是uint8,32位有符号整数类型是int32","9","9.9","94","a.adjust","a.simpledescript","ac","ace.toraw","acerawvalu","act","act1scenecount","add","addon","addone(numb","adescript","adjust","again","alik","amount","anna","anoth","anotheremptystr","anotherproperti","ant","anycommonel","anycommonelements([1","api","appl","applese","applesummari","arc","area","argument","array和dictionari","ascii","automat","b","b.adjust","b.simpledescript","bdescript","blackheart","blue","bonjour","bool","boolean","bottl","brian","c","captain","capulet'","card","card(rank","card添加一个方法,创建一副完整的扑克牌并把每张牌的rank和suit","carriag","case","cat","catfish","celeri","cell","chang","charact","character1","character2","characterpluscharact","characterplusstr","characters)字符串字面量初始化空字符串字符串可变性字符串是值类型使用字符(characters)计算字符数量连接字符串和字符字符串插值比较字符串字符串相等前缀/后缀相等大写和小写字符串unicodeunicod","chees","class","club","cocoa","cocoa的基础上构建框架栈并将其标准化。objective-c","cocoa里的nslog函数一样,println","codeunit","comment","compile-tim","condit","condition(item","consid","constantstr","convertedrank","convertedrank.simpledescript","count","countel","countelements(unusualmenageri","counter","counter.incrementby(2","cucumb","current","currentloginattempt","c的兼容性的限制。swift","d","dai","default","deinit","diamond","dictionary(item","result","result(str","result(sunris","return","returnfifteen","rh","rhsitem","romeoandjuliet","room","samequot","sandwich","sayhello(personnam","sayhelloagain(personnam","sayhello。上面的例子展示的是用"anna"和"brian"","sayhello函数时,在圆括号中传给它一个string类型的实参。因为这个函数返回一个string类型的值,sayhello可以被包含在println","sayhello的函数体中,先定义了一个新的名为greeting的string常量,同时赋值了给personname的一个简单问候消息。然后用return关键字把这个问候返回出去。一旦return","scalar","scene","scene.hasprefix(\"act","score","second","secondforloop","see","self","self.nam","self.sidelength","self被用来区别实例变量。当你创建实例的时候,像传入函数参数一样给类传入构造器的参数。每个属性都需要赋值——无论是通过声明(就像numberofsides)还是通过构造器(就像nam","sequenc","serverrespons","serverresponse.error(\"out","serverresponse.result(\"6:00","serverresponse和switch","set","setter","seven","shape","shape.numberofsid","shape.simpledescript","shapedescript","shape类缺少了一些重要的东西:一个构造函数来初始化类实例。使用init","shoppinglist","shoppinglist[1","shouti","side","sidelength","simpl","simpleclass","simpledescript","simplestructur","simplestructure时候mutating关键字用来标记一个会修改结构体的方法。simpleclass","six","size","snail","some(100","some(t","somestr","sort([1","soup","spade","sparklingheart","spici","squar","square(sidelength","square.sidelength","standard","start","street","string","string(self.toraw","string(width","string1","string2","stringpluscharact","stringplusstr","string”的意思是“可以存储任意str","string,名字为welcomemessag","string,类型安全会阻止你不小心传入一个int","struct","structur","success","suit","suit.heart","suit.simpledescript","suit添加一个color方法,对spades和clubs返回“black”,对hearts和diamonds返回“r","sum","sumof","sumof(42","sumof(numb","sunris","sunset","super.init(nam","swift","swift可以推断出这个常量或者变量的类型,详情参见类型安全和类型推断(待添加链接)。在上面的例子中,没有给welcomemessag","swift用字符串插值(str","swift统一的函数语法足够灵活,可以用来表示任何函数,包括从最简单的没有参数名字的c风格函数,到复杂的带局部和外部参数名的objective-c","switch","switch中匹配到的子句之后,程序会退出switch语句,并不会继续向下运行,所以不需要在每个子句结尾写break","syntax","t","t.generatortype.el","tast","tea","teamscor","ten","terminolog","test","test.area","test.simpledescript","three","threedescript","threeofspad","threeofspades.simpledescript","threeofspadesdescript","time","todai","toraw和fromraw","touch","triagl","triangl","triangle.perimet","triangle.sidelength","triangleandsquar","triangleandsquare(s","triangleandsquare.squar","triangleandsquare.square.sidelength","triangleandsquare.triangle.sidelength","true","tuesdai","tulip","tupl","two","type","u","u+0024","u+0061","u+1f436","u+1f496","u+2665","u+d83d","u+dc36","u.generatortype.el","u0001f496","u2665","uin8","uint","uint16","uint32","uint8","uint8.max","uint8.min","uint。如果不是这种情况,最好使用int,即使要存储的值已知是非负数。使用int","uncom","undefinedundefin","unicod","unicodescalar","unicodescalarview","unnnn","unnnnnnnn","unusualmenageri","uppercasestr","us","utf-16","utf-8","utf-8utf-16unicod","utf16","utf16count","utf16view","utf8","utf8view","valu","var","variablestr","veget","vegetablecom","veri","verona","water","watercress","we'r","welcom","welcomemessag","welcomemessage变量添加了类型标注,表示这个变量可以存储str","where,只在冒号后面写接口或者类名。<t","whisper","width","widthlabel","willset","willset和didset","wiseword","work","world","world"","written","wwdc","x","x.hassuffix(\"pepp","x24","xcode","xnn","y","yensign","z"],"pipeline":["trimmer","stopWordFilter","stemmer"]} \ No newline at end of file +{"version":"0.5.2","fields":[{"name":"title","boost":10},{"name":"body","boost":1}],"ref":"url","documentStore":{"store":{"index.html#gitbook_3723":["2014","languag","program","swift","undefinedundefin","wwdc"],"chapter1/01_swift.html#gitbook_3724":["arc","automat","c","cocoa","cocoa的基础上构建框架栈并将其标准化。objective-c","count","c的兼容性的限制。swift","foundat","hello","io","objective-c","os","refer","swift","touch","undefinedundefin","world","x"],"chapter1/02_a_swift_tour.html#gitbook_3725":["0","0..3","0..time","0.0","1","10","100","103","11","12","13","16","19","2","2.5","20","25","3","3.0","3.1","3.59","3.69","3.79","4","42","43","5","5.2","50","597","69105","7","7.simpledescript","70","70.0","75","8","87","8:09","9","9.9","94","a.adjust","a.simpledescript","ac","ace.toraw","acerawvalu","add","addon","addone(numb","adescript","adjust","amount","anoth","anotherproperti","ant","anycommonel","anycommonelements([1","appl","applese","applesummari","area","b","b.adjust","b.simpledescript","bdescript","blue","bool","bottl","c","captain","card","card(rank","card添加一个方法,创建一副完整的扑克牌并把每张牌的rank和suit","case","catfish","celeri","chees","class","club","condit","condition(item","convertedrank","convertedrank.simpledescript","count","counter","counter.incrementby(2","cucumb","dai","default","deinit","diamond","dictionary(item","result","result(str","result(sunris","return","returnfifteen","rh","rhsitem","sandwich","score","secondforloop","see","self","self.nam","self.sidelength","self被用来区别实例变量。当你创建实例的时候,像传入函数参数一样给类传入构造器的参数。每个属性都需要赋值——无论是通过声明(就像numberofsides)还是通过构造器(就像nam","sequenc","serverrespons","serverresponse.error(\"out","serverresponse.result(\"6:00","serverresponse和switch","set","setter","seven","shape","shape.numberofsid","shape.simpledescript","shapedescript","shape类缺少了一些重要的东西:一个构造函数来初始化类实例。使用init","shoppinglist","shoppinglist[1","side","sidelength","simpl","simpleclass","simpledescript","simplestructur","simplestructure时候mutating关键字用来标记一个会修改结构体的方法。simpleclass","six","size","some(100","some(t","sort([1","soup","spade","spici","squar","square(sidelength","square.sidelength","standard","string","string(self.toraw","string(width","struct","structur","success","suit","suit.heart","suit.simpledescript","suit添加一个color方法,对spades和clubs返回“black”,对hearts和diamonds返回“r","sum","sumof","sumof(42","sumof(numb","sunris","sunset","super.init(nam","swift","switch","switch中匹配到的子句之后,程序会退出switch语句,并不会继续向下运行,所以不需要在每个子句结尾写break","t","t.generatortype.el","tast","tea","teamscor","ten","test","test.area","test.simpledescript","three","threedescript","threeofspad","threeofspades.simpledescript","threeofspadesdescript","time","todai","toraw和fromraw","triagl","triangl","triangle.perimet","triangle.sidelength","triangleandsquar","triangleandsquare(s","triangleandsquare.squar","triangleandsquare.square.sidelength","triangleandsquare.triangle.sidelength","true","tuesdai","tulip","two","type","u","u.generatortype.el","uncom","undefinedundefin","var","veget","vegetablecom","veri","water","watercress","where,只在冒号后面写接口或者类名。<t","width","widthlabel","willset","willset和didset","world","x","x.hassuffix(\"pepp","xcode","y"],"chapter1/chapter1.html#gitbook_3726":["swift","undefinedundefin"],"chapter2/01_The_Basics.html#gitbook_3728":["0","0.0","0.0125","0.14159","000123.456","0b","0b10001","0o","0o21","0x","0x11","0xc.3p0","0xfp-2","0xfp2","0x)。小数点两边必须有至少一个十进制数字(或者是十六进制的数字)。浮点原始值还有一个可选的指数,在十进制浮点数中通过大写或者小写的e来指定,在十六进制浮点数中通过大写或者小写的p","1","1.21875e1","1.25","1.25e-2","1.25e2","10","10^-2","10^2","12.1875","125.0","15","17","1_000_000","1_000_000.000_000_1","255","2^-2","2^2","2_000","3","3.14159","3.14159,0.1和-273.15","3.75","32位平台上,int和int32","32位平台上,uint和uint32","3可以直接和原始值0.14159","3没有显式声明类型,而表达式中出现了一个浮点原始值,所以表达式会被推测为doubl","4.75会变成4,-3.9会变成3","42","42和-23","42和3.14159","42并且没有标明类型,swift","60.0","64位平台上,int和int64","64位平台上,uint和uint64","8、16、32和64","8位无符号整数类型是uint8,32位有符号整数类型是int32","anotherpi","array和dictionari","binaryinteg","bonjour","c","cannotbeneg","cat","chang","cocoa里的nslog函数一样,println","comment","compile-tim","current","currentloginattempt","decimaldoubl","decimalinteg","dogcow","doubl","double(thre","double或者float","double精确度很高,至少有15位数字,而float最少只有6","double而不是float","double表示64","end","error","exponentdoubl","exp,那这个数相当于基数和10^exp","exp,那这个数相当于基数和2^exp","first","float表示32","friendlywelcom","friendlywelcome的值从"hello!"改为了"bonjour!"","hello","hexadecimaldoubl","hexadecimalinteg","int","int(pi","int8","int8.max","int8类型的常量或者变量可以存储的数字范围是-128~127,uint8类型的常量或者变量能存储的数字范围是0~255","integerpi","interpolation)的方式把常量名或者变量名当做占位符加入到长字符串中,swift会用当前常量或变量的值替换这些占位符。将常量或变量名放入反斜杠符加一对圆括号中"\\()"","intuint","int就够了。这可以提高代码一致性和可复用性。即使是在32位平台上,int可以存储的整数范围也可以达到-2147483648~2147483647","int是整型;double和float是浮点型;bool是布尔型;string是字符串。swift","int类型更大或者更小的数字。swift","io","justoveronemillion","languagenam","let来声明常量,用var","line","maximumnumberofloginattempt","maximumnumberofloginattempts或者welcomemessage)和一个指定类型的值(比如数字10或者字符串hello","maximumnumberofloginattempts的新常量,并给它一个值10。然后,声明一个名字是currentloginattempt的变量并将它的值初始化为0","maxvalu","meaningoflif","minvalu","min和max","multilin","multipl","nest","nil","now","objc","objective-c","octalinteg","on","onemillion","option","os","over","paddeddoubl","pi","pointonefouronefivenin","print","println","println(\"th","println(\"thi","println(cat","println(friendlywelcom","println函数输出传入的str","println是一个用来输出的全局函数,输出的内容会在最后带换行。如果你用xcode,println将会输出内容到“console”面板上。(另一种函数叫print","second","sometype(ofinitialvalu","start","string","string”的意思是“可以存储任意str","string,你绝对不可能不小心传进去一个int","string,名字为welcomemessag","string,类型安全会阻止你不小心传入一个int","swift","swift可以推断出这个常量或者变量的类型,详情参见类型安全和类型推断(待添加链接)。在上面的例子中,没有给welcomemessag","swift用字符串插值(str","three","three的值被用来创建一个doubl","toobig","tupl","twothousand","twothousandandon","twothousand类型是uint16,然而常量one类型是uint8。它们不能直接相加,因为它们类型不同。所以要调用uint16(one)来创建一个新的uint16数字并用on","uint","uint16","uint16(on","uint16有一个构造器,可以接受一个uint8类型的值,所以这个构造器可以用现有的uint8来创建一个新的uint16。注意,你并不能传入任意类型的值,只能传入uint16","uint16,可以进行相加。目标常量twothousandandone的类型被推测为uint16,因为它是两个uint16","uint8","uint8.max","uint8.min","uint,除非你真的需要存储一个和当前平台原生字长相同的无符号整数。除了这种情况,最好使用int,即使你要存储的值已知是非负的。统一使用int","undefinedundefin","unicod","valu","var","welcomemessag","welcomemessage变量添加了类型标注,表示这个变量可以存储str","written","x","y","z"],"chapter2/03_Strings_and_Characters.html#gitbook_3729":["0","1","10","103","111","128054","128054,是一个十六进制1f436","144","159","16","182","2","2.5","21","240","3","33","39","4","40","5","55357","56374","6","68","7.5","8","act","act1scenecount","alik","anoth","anotheremptystr","api","ascii","blackheart","boolean","c","capulet'","carriag","cell","charact","character1","character2","characterpluscharact","characterplusstr","characters)字符串字面量初始化空字符串字符串可变性字符串是值类型使用字符(characters)计算字符数量连接字符串和字符字符串插值比较字符串字符串相等前缀/后缀相等大写和小写字符串unicodeunicod","cocoa","codeunit","compile-tim","consid","constantstr","countel","countelements(unusualmenageri","d","dog","dogstr","dogstring.unicodescalar","dogstring.utf16","dogstring.utf8","dollarsign","dollarsign、blackheart","double(multipli","dromedari","einstein","empti","emptystr","emptystring.isempti","enumer","equal","error","for-in","foundat","friar","g","good","great","hall","hasprefix","hasprefix/hassuffix","hello","help","here","highland","hors","imagin","import","initi","instruct","isempti","knowledg","koala","lawrence'","length","liter","look","loop","lot","lowercasestr","mansion","messag","more","morn","multipli","n","nn","nnnn","nnnnnnnn","normal","normal.lowercasestr","normal.uppercasestr","noth","nsmutablestr","nsstring","o","objective-c","orchard","outsid","over","penguin","place","pleas","print","print(\"\\(codeunit","print(\"\\(scalar.valu","print(\"\\n","println(\"\\(scalar","println(\"noth","println(\"ther","println(\"thes","println(\"unusualmenageri","println(charact","public","quot","quot;a"),u+1f425","quot;albatross"","quot;hello","quot;🐥"","quotat","r","romeoandjuliet","room","samequot","scalar","scene","scene.hasprefix(\"act","see","shouti","snail","somestr","sparklingheart","street","string","string1","string2","stringpluscharact","stringplusstr","structur","swift","syntax","t","terminolog","time","touch","two","type","u+0024","u+0061","u+1f436","u+1f496","u+2665","u+d83d","u+dc36","u0001f496","u2665","uin8","uint16","uint32","uint8","undefinedundefin","unicod","unicodescalar","unicodescalarview","unnnn","unnnnnnnn","unusualmenageri","uppercasestr","us","utf-16","utf-8","utf-8utf-16unicod","utf16","utf16count","utf16view","utf8","utf8view","valu","var","variablestr","verona","we'r","welcom","whisper","wiseword","work","world"","x24","xnn","yensign"],"chapter2/06_Functions.html#gitbook_3732":["again","anna","argument","brian","func","function","func作为前缀。指定函数返回类型时,用返回箭头->","greet","greeting被调用,该函数结束它的执行并返回greet","hello","paramet","personnam","print","println(sayhello(\"anna","println(sayhello(\"brian","println(sayhelloagain(\"anna","quot;greetingforperson",之所以叫这个名字是因为这个函数用一个人的名字当做输入,并返回给这个人的问候语。为了完成这个任务,你定义一个输入参数-一个叫做personname的string值,和一个包含给这个人问候语的str","return","sayhello(personnam","sayhelloagain(personnam","sayhello。上面的例子展示的是用"anna"和"brian"","sayhello函数时,在圆括号中传给它一个string类型的实参。因为这个函数返回一个string类型的值,sayhello可以被包含在println","sayhello的函数体中,先定义了一个新的名为greeting的string常量,同时赋值了给personname的一个简单问候消息。然后用return关键字把这个问候返回出去。一旦return","string","swift","swift统一的函数语法足够灵活,可以用来表示任何函数,包括从最简单的没有参数名字的c风格函数,到复杂的带局部和外部参数名的objective-c","undefinedundefin"],"chapter2/07_Closures.html#gitbook_3733":["0","0,$1,$2","0,这时闭包会将字符串输出,而map","1","10","10中,如果number为16,则返回6,58返回8,510返回0","16","16,58,510","16变成了1,58变成了5,510变成了51","2","20","3","30","4","40","5","50","510","58","6","7","8","9","alex","alsoincrementbyten","amount","arrai","b","backward","backwards(s1","barri","block","bool","c","captur","caputur","chri","closur","constant","cycl","daniella","digitnam","digitnames[numb","eight","equal","ewa","five","fiveeight","fiveonezero","force-unwrap","forincr","four","func","function","gt","incrementbyseven","incrementbysevn","incrementbyten","incrementor","inout","int","kei","lambda","makeincrementor","makeincrementor(forincr","map","name","nine","note","number","numbers.map","objective-c","on","onesix","oper","option","output","paramet","quot;a"","quot;alex"","quot;b"","quot;barry"","quot;fiveeight"","quot;fiveonezero"","quot;onesix"","quot;tim"","quot;tom"","quot;大于"","quot;按照字母顺序后出现"","refer","return","returntyp","return参数名称缩写运算符函数trail","revers","runingtot","runningtot","s1","s2","s2),backward","seven","six","somefunctionthattakesaclosur","somefunctionthattakesaclosure(closur","sort","sort(nam","statement","string","strong","swift","three","trail","true","two","type","undefinedundefin","valu","var","variabl","zero"],"chapter2/09_Classes_and_Structures.html#gitbook_3735":["undefinedundefin"],"chapter2/19_Nested_Types.html#gitbook_3744":["1","10","11","2","ac","blackjackcard","blackjackcard(rank","blackjackcard(二十一点),用来模拟blackjackcard中的扑克牌点数。blackjackcard结构体包含2个嵌套定义的枚举类型suit","blackjackcard.suit.hearts.toraw","blackjackcard是一个没有自定义构造函数的结构体,在memberwis","blackjackcard结构体自身有两个属性—rank与suit,也同样定义了一个计算属性description,description属性用rank和suit的中内容来构建对这张扑克牌名字和数值的描述,并用可选类型second","blackjackcard规则中,ace牌可以表示1或者11,ace牌的这一特征用一个嵌套在枚举型rank的结构体valu","case","charact","club","default","descript","diamond","eight","enum","first","five","four","heart","heartssymbol","initi","int","jack","king","nil","nine","option","output","println(\"theaceofspad","queen","rank","rank.values.first","rank.values.second","rank和suit嵌套在blackjackcard中,但仍可被引用,所以在初始化实例时能够通过枚举类型中的成员名称单独引用。在上面的例子中description属性能正确得输出对ace牌有1和11","rank在自己内部定义了一个嵌套结构体values。这个结构体包含两个变量,只有ace有两个数值,其余牌都只有一个数值。结构体valu","rank定义了一个计算属性values,这个计算属性会根据牌的面值,用适当的数值去初始化values实例,并赋值给values。对于j,q,k,ace会使用特殊数值,对于数字面值的牌使用int","rank用来描述扑克牌从ace~10,j,q,k,13张牌,并分别用一个int类型的值表示牌的面值。(这个int类型的值不适用于ace,j,q,k","return","second","self","self.toraw","seven","six","spade","string","struct","structur","suit","suit.toraw","suit用来描述扑克牌的四种花色,并分别用一个charact","swift","switch","ten","theaceofspad","theaceofspades.descript","three","two","types中知道结构体有默认的成员构造函数,所以你可以用默认的initializer去初始化新的常量theaceofspad","undefinedundefin","valu","values(first","var"],"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745":["arc","arc为了能帮助你管理内存,需要更多的关于你的代码之间关系的信息。本章描述了这些情况,并且为你示范怎样启用arc","arc会分配一大块内存用来储存实例的信息。内存中会包含实例的类型信息,以及这个实例所有相关属性的值。此外,当实例不再被使用时,arc","arc会跟踪和计算每一个类实例正在被多少属性,常量和变量所引用。哪怕实例的引用数为一,arc","swift使用自动引用计数(arc)这一机制来跟踪和管理你的应用程序的内存。通常情况下,swift的内存管理机制会一直起着作用,你无须自己来考虑内存的管理。arc","undefinedundefin"],"chapter2/chapter2.html#gitbook_3750":["swift","undefinedundefin"],"chapter3/01_About_the_Language_Reference.html#gitbook_3751":["block","getter-claus","getter-sett","getter-setter-block","getter-setter方法​​块可以由一个getter子句后跟一个可选的setter子句构成,用大括号括起来,或者由一个setter子句后跟一个gett","grammar","opt","setter-claus","setter-clause­opt","swift","swift语言相对小点,这是由于在swift代码中几乎无处不在的许多常见的的类型,函数以及运算符都由swift标准库来定义。虽然这些类型,函数和运算符不是swift","undefinedundefin"]},"length":13},"tokenStore":{"root":{"0":{"0":{"0":{"1":{"2":{"3":{"docs":{},".":{"4":{"5":{"6":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.01410105757931845},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.018469656992084433}},".":{"0":{"1":{"2":{"5":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.01060070671378092}}},"1":{"4":{"1":{"5":{"9":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{},".":{"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{},"t":{"docs":{},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}},"b":{"1":{"0":{"0":{"0":{"1":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"o":{"2":{"1":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"x":{"1":{"1":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},"c":{"docs":{},".":{"3":{"docs":{},"p":{"0":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}},"docs":{}}},"f":{"docs":{},"p":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{},"-":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}}},")":{"docs":{},"。":{"docs":{},"小":{"docs":{},"数":{"docs":{},"点":{"docs":{},"两":{"docs":{},"边":{"docs":{},"必":{"docs":{},"须":{"docs":{},"有":{"docs":{},"至":{"docs":{},"少":{"docs":{},"一":{"docs":{},"个":{"docs":{},"十":{"docs":{},"进":{"docs":{},"制":{"docs":{},"数":{"docs":{},"字":{"docs":{},"(":{"docs":{},"或":{"docs":{},"者":{"docs":{},"是":{"docs":{},"十":{"docs":{},"六":{"docs":{},"进":{"docs":{},"制":{"docs":{},"的":{"docs":{},"数":{"docs":{},"字":{"docs":{},")":{"docs":{},"。":{"docs":{},"浮":{"docs":{},"点":{"docs":{},"原":{"docs":{},"始":{"docs":{},"值":{"docs":{},"还":{"docs":{},"有":{"docs":{},"一":{"docs":{},"个":{"docs":{},"可":{"docs":{},"选":{"docs":{},"的":{"docs":{},"指":{"docs":{},"数":{"docs":{},",":{"docs":{},"在":{"docs":{},"十":{"docs":{},"进":{"docs":{},"制":{"docs":{},"浮":{"docs":{},"点":{"docs":{},"数":{"docs":{},"中":{"docs":{},"通":{"docs":{},"过":{"docs":{},"大":{"docs":{},"写":{"docs":{},"或":{"docs":{},"者":{"docs":{},"小":{"docs":{},"写":{"docs":{},"的":{"docs":{},"e":{"docs":{},"来":{"docs":{},"指":{"docs":{},"定":{"docs":{},",":{"docs":{},"在":{"docs":{},"十":{"docs":{},"六":{"docs":{},"进":{"docs":{},"制":{"docs":{},"浮":{"docs":{},"点":{"docs":{},"数":{"docs":{},"中":{"docs":{},"通":{"docs":{},"过":{"docs":{},"大":{"docs":{},"写":{"docs":{},"或":{"docs":{},"者":{"docs":{},"小":{"docs":{},"写":{"docs":{},"的":{"docs":{},"p":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},",":{"docs":{},"$":{"1":{"docs":{},",":{"docs":{},"$":{"2":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"docs":{}}}},"docs":{}}},",":{"docs":{},"这":{"docs":{},"时":{"docs":{},"闭":{"docs":{},"包":{"docs":{},"会":{"docs":{},"将":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"输":{"docs":{},"出":{"docs":{},",":{"docs":{},"而":{"docs":{},"m":{"docs":{},"a":{"docs":{},"p":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}}}}}}}}}},"1":{"0":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}}},"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.023746701846965697},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},"^":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{},"-":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}},"中":{"docs":{},",":{"docs":{},"如":{"docs":{},"果":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{},"为":{"1":{"6":{"docs":{},",":{"docs":{},"则":{"docs":{},"返":{"docs":{},"回":{"6":{"docs":{},",":{"5":{"8":{"docs":{},"返":{"docs":{},"回":{"8":{"docs":{},",":{"5":{"1":{"0":{"docs":{},"返":{"docs":{},"回":{"0":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"docs":{}}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}}}},"docs":{}},"docs":{}}},"docs":{}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}},"1":{"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}}},"2":{"5":{"docs":{},".":{"0":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}},"8":{"0":{"5":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},",":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"十":{"docs":{},"六":{"docs":{},"进":{"docs":{},"制":{"1":{"docs":{},"f":{"4":{"3":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483}},".":{"1":{"8":{"7":{"5":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}}},"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"4":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"docs":{}},"5":{"9":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}}},"6":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},",":{"5":{"8":{"docs":{},",":{"5":{"1":{"0":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"变":{"docs":{},"成":{"docs":{},"了":{"1":{"docs":{},",":{"5":{"8":{"docs":{},"变":{"docs":{},"成":{"docs":{},"了":{"5":{"docs":{},",":{"5":{"1":{"0":{"docs":{},"变":{"docs":{},"成":{"docs":{},"了":{"5":{"1":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"docs":{}},"docs":{}}}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}}}}},"docs":{}},"docs":{}}},"docs":{}}}}},"7":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0176678445229682}}},"8":{"2":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"docs":{}},"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.009400705052878966},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.01060070671378092},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.01838235294117647},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.010554089709762533},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}},".":{"2":{"1":{"8":{"7":{"5":{"docs":{},"e":{"1":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}},"5":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}},"e":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{},"-":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}}},"docs":{}},"docs":{}},"_":{"0":{"0":{"0":{"docs":{},"_":{"0":{"0":{"0":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},".":{"0":{"0":{"0":{"docs":{},"_":{"0":{"0":{"0":{"docs":{},"_":{"1":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}}},"2":{"0":{"1":{"4":{"docs":{"index.html#gitbook_3723":{"ref":"index.html#gitbook_3723","tf":0.1111111111111111}}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.007352941176470588}}},"4":{"0":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"docs":{}},"5":{"5":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.009400705052878966},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.014705882352941176},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},".":{"5":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.009191176470588236}}},"docs":{}},"^":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{},"-":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}},"_":{"0":{"0":{"0":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}},"docs":{}}},"3":{"0":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"2":{"docs":{},"位":{"docs":{},"平":{"docs":{},"台":{"docs":{},"上":{"docs":{},",":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"和":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"3":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}}}}}}},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"和":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"3":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}},"3":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}}},"9":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.011750881316098707},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.01060070671378092},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.007352941176470588},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},".":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}},"1":{"4":{"1":{"5":{"9":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.01060070671378092}},",":{"0":{"docs":{},".":{"1":{"docs":{},"和":{"docs":{},"-":{"2":{"7":{"3":{"docs":{},".":{"1":{"5":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}}}},"docs":{}}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"5":{"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"6":{"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"7":{"5":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"docs":{}},"可":{"docs":{},"以":{"docs":{},"直":{"docs":{},"接":{"docs":{},"和":{"docs":{},"原":{"docs":{},"始":{"docs":{},"值":{"0":{"docs":{},".":{"1":{"4":{"1":{"5":{"9":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}},"没":{"docs":{},"有":{"docs":{},"显":{"docs":{},"式":{"docs":{},"声":{"docs":{},"明":{"docs":{},"类":{"docs":{},"型":{"docs":{},",":{"docs":{},"而":{"docs":{},"表":{"docs":{},"达":{"docs":{},"式":{"docs":{},"中":{"docs":{},"出":{"docs":{},"现":{"docs":{},"了":{"docs":{},"一":{"docs":{},"个":{"docs":{},"浮":{"docs":{},"点":{"docs":{},"原":{"docs":{},"始":{"docs":{},"值":{"docs":{},",":{"docs":{},"所":{"docs":{},"以":{"docs":{},"表":{"docs":{},"达":{"docs":{},"式":{"docs":{},"会":{"docs":{},"被":{"docs":{},"推":{"docs":{},"测":{"docs":{},"为":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"4":{"0":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"2":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},"和":{"3":{"docs":{},".":{"1":{"4":{"1":{"5":{"9":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}}},"docs":{},"-":{"2":{"3":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}},"并":{"docs":{},"且":{"docs":{},"没":{"docs":{},"有":{"docs":{},"标":{"docs":{},"明":{"docs":{},"类":{"docs":{},"型":{"docs":{},",":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}},"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},".":{"7":{"5":{"docs":{},"会":{"docs":{},"变":{"docs":{},"成":{"4":{"docs":{},",":{"docs":{},"-":{"3":{"docs":{},".":{"9":{"docs":{},"会":{"docs":{},"变":{"docs":{},"成":{"3":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}}}},"docs":{}}},"docs":{}}}},"docs":{}}}}},"docs":{}},"docs":{}}},"5":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"1":{"0":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"docs":{}},"5":{"3":{"5":{"7":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}},"docs":{}},"docs":{}},"docs":{}},"6":{"3":{"7":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}},"docs":{}},"docs":{}},"docs":{}},"8":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"9":{"7":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.005875440658049354},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},".":{"2":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}}},"6":{"0":{"docs":{},".":{"0":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}},"4":{"docs":{},"位":{"docs":{},"平":{"docs":{},"台":{"docs":{},"上":{"docs":{},",":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"和":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"6":{"4":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}}}}}}},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"和":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"6":{"4":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}},"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}}},"9":{"1":{"0":{"5":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"7":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},".":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}}},"5":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.0079155672823219}},".":{"5":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}},"8":{"7":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},":":{"0":{"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"docs":{}},"、":{"1":{"6":{"docs":{},"、":{"3":{"2":{"docs":{},"和":{"6":{"4":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"位":{"docs":{},"无":{"docs":{},"符":{"docs":{},"号":{"docs":{},"整":{"docs":{},"数":{"docs":{},"类":{"docs":{},"型":{"docs":{},"是":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"8":{"docs":{},",":{"3":{"2":{"docs":{},"位":{"docs":{},"有":{"docs":{},"符":{"docs":{},"号":{"docs":{},"整":{"docs":{},"数":{"docs":{},"类":{"docs":{},"型":{"docs":{},"是":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"3":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}}}}}}}}}}}}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}}}}}}},"9":{"4":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},".":{"9":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}}},"docs":{},"l":{"docs":{},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{},"u":{"docs":{},"a":{"docs":{},"g":{"docs":{"index.html#gitbook_3723":{"ref":"index.html#gitbook_3723","tf":0.1111111111111111}},"e":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.01060070671378092}}}}}}}}}}},"b":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}},"r":{"docs":{},"g":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483}}}}}}},"w":{"docs":{},"r":{"docs":{},"e":{"docs":{},"n":{"docs":{},"c":{"docs":{},"e":{"docs":{},"'":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}},"m":{"docs":{},"b":{"docs":{},"d":{"docs":{},"a":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}}},"s":{"docs":{},"s":{"docs":{},"t":{"docs":{},"h":{"docs":{},"a":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"(":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}},"t":{"docs":{},"来":{"docs":{},"声":{"docs":{},"明":{"docs":{},"常":{"docs":{},"量":{"docs":{},",":{"docs":{},"使":{"docs":{},"用":{"docs":{},"v":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"用":{"docs":{},"v":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"s":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}},"i":{"docs":{},"b":{"docs":{},"r":{"docs":{},"a":{"docs":{},"r":{"docs":{},"y":{"docs":{},"'":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},"n":{"docs":{},"e":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}},"o":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"o":{"docs":{},"k":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"p":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"w":{"docs":{},"e":{"docs":{},"r":{"docs":{},"c":{"docs":{},"a":{"docs":{},"s":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"g":{"docs":{},"r":{"docs":{},"a":{"docs":{},"m":{"docs":{"index.html#gitbook_3723":{"ref":"index.html#gitbook_3723","tf":0.1111111111111111}}}}}},"t":{"docs":{},"o":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"e":{"docs":{},".":{"docs":{},"a":{"docs":{},"n":{"docs":{},"o":{"docs":{},"t":{"docs":{},"h":{"docs":{},"e":{"docs":{},"r":{"docs":{},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"变":{"docs":{},"量":{"docs":{},"运":{"docs":{},"行":{"docs":{},"时":{"docs":{},"的":{"docs":{},"类":{"docs":{},"型":{"docs":{},"是":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"c":{"docs":{},"l":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{},",":{"docs":{},"编":{"docs":{},"译":{"docs":{},"器":{"docs":{},"会":{"docs":{},"把":{"docs":{},"它":{"docs":{},"的":{"docs":{},"类":{"docs":{},"型":{"docs":{},"当":{"docs":{},"做":{"docs":{},"e":{"docs":{},"x":{"docs":{},"a":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"t":{"docs":{},"o":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.014134275618374558},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415},"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.07142857142857142}},"l":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},"(":{"docs":{},"\"":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"t":{"docs":{},"h":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},"i":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"e":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"s":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"p":{"docs":{},"a":{"docs":{},"d":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}},"\\":{"docs":{},"(":{"docs":{},"s":{"docs":{},"c":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}},"n":{"docs":{},"o":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}},"u":{"docs":{},"n":{"docs":{},"u":{"docs":{},"s":{"docs":{},"u":{"docs":{},"a":{"docs":{},"l":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"a":{"docs":{},"g":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}}}}}},"c":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"f":{"docs":{},"r":{"docs":{},"i":{"docs":{},"e":{"docs":{},"n":{"docs":{},"d":{"docs":{},"l":{"docs":{},"y":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}},"s":{"docs":{},"a":{"docs":{},"y":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"a":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}},"b":{"docs":{},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}},"a":{"docs":{},"g":{"docs":{},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"a":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}},"函":{"docs":{},"数":{"docs":{},"输":{"docs":{},"出":{"docs":{},"传":{"docs":{},"入":{"docs":{},"的":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"用":{"docs":{},"来":{"docs":{},"输":{"docs":{},"出":{"docs":{},"的":{"docs":{},"全":{"docs":{},"局":{"docs":{},"函":{"docs":{},"数":{"docs":{},",":{"docs":{},"输":{"docs":{},"出":{"docs":{},"的":{"docs":{},"内":{"docs":{},"容":{"docs":{},"会":{"docs":{},"在":{"docs":{},"最":{"docs":{},"后":{"docs":{},"带":{"docs":{},"换":{"docs":{},"行":{"docs":{},"。":{"docs":{},"如":{"docs":{},"果":{"docs":{},"你":{"docs":{},"用":{"docs":{},"x":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{},",":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"l":{"docs":{},"n":{"docs":{},"将":{"docs":{},"会":{"docs":{},"输":{"docs":{},"出":{"docs":{},"内":{"docs":{},"容":{"docs":{},"到":{"docs":{},"“":{"docs":{},"c":{"docs":{},"o":{"docs":{},"n":{"docs":{},"s":{"docs":{},"o":{"docs":{},"l":{"docs":{},"e":{"docs":{},"”":{"docs":{},"面":{"docs":{},"板":{"docs":{},"上":{"docs":{},"。":{"docs":{},"(":{"docs":{},"另":{"docs":{},"一":{"docs":{},"种":{"docs":{},"函":{"docs":{},"数":{"docs":{},"叫":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"(":{"docs":{},"\"":{"docs":{},"\\":{"docs":{},"(":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}}},"s":{"docs":{},"c":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{},".":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}}}}}}},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"d":{"docs":{},"d":{"docs":{},"e":{"docs":{},"d":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}},"r":{"docs":{},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}}}}}},"e":{"docs":{},"p":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"r":{"docs":{},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.047619047619047616}}}}}}}}},"n":{"docs":{},"g":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}},"i":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.014134275618374558}},"e":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"o":{"docs":{},"s":{"docs":{},"s":{"docs":{},"i":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}}},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"f":{"docs":{},"o":{"docs":{},"u":{"docs":{},"r":{"docs":{},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"f":{"docs":{},"i":{"docs":{},"v":{"docs":{},"e":{"docs":{},"n":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}}}}}}}}}}}}}}}}}}}}}}},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{},"i":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}},"l":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}},"e":{"docs":{},"a":{"docs":{},"s":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}}}},"s":{"1":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.03430079155672823}}},"2":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.03430079155672823}},")":{"docs":{},",":{"docs":{},"b":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"w":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}}},"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"index.html#gitbook_3723":{"ref":"index.html#gitbook_3723","tf":10.444444444444445},"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":10.404761904761905},"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":10.00587544065805},"chapter1/chapter1.html#gitbook_3726":{"ref":"chapter1/chapter1.html#gitbook_3726","tf":10.75},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.10247349823321555},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.029411764705882353},"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.03430079155672823},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009},"chapter2/chapter2.html#gitbook_3750":{"ref":"chapter2/chapter2.html#gitbook_3750","tf":10.666666666666666},"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.08333333333333333}},"可":{"docs":{},"以":{"docs":{},"推":{"docs":{},"断":{"docs":{},"出":{"docs":{},"这":{"docs":{},"个":{"docs":{},"常":{"docs":{},"量":{"docs":{},"或":{"docs":{},"者":{"docs":{},"变":{"docs":{},"量":{"docs":{},"的":{"docs":{},"类":{"docs":{},"型":{"docs":{},",":{"docs":{},"详":{"docs":{},"情":{"docs":{},"参":{"docs":{},"见":{"docs":{},"类":{"docs":{},"型":{"docs":{},"安":{"docs":{},"全":{"docs":{},"和":{"docs":{},"类":{"docs":{},"型":{"docs":{},"推":{"docs":{},"断":{"docs":{},"(":{"docs":{},"待":{"docs":{},"添":{"docs":{},"加":{"docs":{},"链":{"docs":{},"接":{"docs":{},")":{"docs":{},"。":{"docs":{},"在":{"docs":{},"上":{"docs":{},"面":{"docs":{},"的":{"docs":{},"例":{"docs":{},"子":{"docs":{},"中":{"docs":{},",":{"docs":{},"没":{"docs":{},"有":{"docs":{},"给":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"用":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"插":{"docs":{},"值":{"docs":{},"(":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}},"统":{"docs":{},"一":{"docs":{},"的":{"docs":{},"函":{"docs":{},"数":{"docs":{},"语":{"docs":{},"法":{"docs":{},"足":{"docs":{},"够":{"docs":{},"灵":{"docs":{},"活":{"docs":{},",":{"docs":{},"可":{"docs":{},"以":{"docs":{},"用":{"docs":{},"来":{"docs":{},"表":{"docs":{},"示":{"docs":{},"任":{"docs":{},"何":{"docs":{},"函":{"docs":{},"数":{"docs":{},",":{"docs":{},"包":{"docs":{},"括":{"docs":{},"从":{"docs":{},"最":{"docs":{},"简":{"docs":{},"单":{"docs":{},"的":{"docs":{},"没":{"docs":{},"有":{"docs":{},"参":{"docs":{},"数":{"docs":{},"名":{"docs":{},"字":{"docs":{},"的":{"docs":{},"c":{"docs":{},"风":{"docs":{},"格":{"docs":{},"函":{"docs":{},"数":{"docs":{},",":{"docs":{},"到":{"docs":{},"复":{"docs":{},"杂":{"docs":{},"的":{"docs":{},"带":{"docs":{},"局":{"docs":{},"部":{"docs":{},"和":{"docs":{},"外":{"docs":{},"部":{"docs":{},"参":{"docs":{},"数":{"docs":{},"名":{"docs":{},"的":{"docs":{},"o":{"docs":{},"b":{"docs":{},"j":{"docs":{},"e":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"v":{"docs":{},"e":{"docs":{},"-":{"docs":{},"c":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"使":{"docs":{},"用":{"docs":{},"自":{"docs":{},"动":{"docs":{},"引":{"docs":{},"用":{"docs":{},"计":{"docs":{},"数":{"docs":{},"(":{"docs":{},"a":{"docs":{},"r":{"docs":{},"c":{"docs":{},")":{"docs":{},"这":{"docs":{},"一":{"docs":{},"机":{"docs":{},"制":{"docs":{},"来":{"docs":{},"跟":{"docs":{},"踪":{"docs":{},"和":{"docs":{},"管":{"docs":{},"理":{"docs":{},"你":{"docs":{},"的":{"docs":{},"应":{"docs":{},"用":{"docs":{},"程":{"docs":{},"序":{"docs":{},"的":{"docs":{},"内":{"docs":{},"存":{"docs":{},"。":{"docs":{},"通":{"docs":{},"常":{"docs":{},"情":{"docs":{},"况":{"docs":{},"下":{"docs":{},",":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{},"的":{"docs":{},"内":{"docs":{},"存":{"docs":{},"管":{"docs":{},"理":{"docs":{},"机":{"docs":{},"制":{"docs":{},"会":{"docs":{},"一":{"docs":{},"直":{"docs":{},"起":{"docs":{},"着":{"docs":{},"作":{"docs":{},"用":{"docs":{},",":{"docs":{},"你":{"docs":{},"无":{"docs":{},"须":{"docs":{},"自":{"docs":{},"己":{"docs":{},"来":{"docs":{},"考":{"docs":{},"虑":{"docs":{},"内":{"docs":{},"存":{"docs":{},"的":{"docs":{},"管":{"docs":{},"理":{"docs":{},"。":{"docs":{},"a":{"docs":{},"r":{"docs":{},"c":{"docs":{"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745":{"ref":"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745","tf":0.16666666666666666}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"语":{"docs":{},"言":{"docs":{},"相":{"docs":{},"对":{"docs":{},"小":{"docs":{},"点":{"docs":{},",":{"docs":{},"这":{"docs":{},"是":{"docs":{},"由":{"docs":{},"于":{"docs":{},"在":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{},"代":{"docs":{},"码":{"docs":{},"中":{"docs":{},"几":{"docs":{},"乎":{"docs":{},"无":{"docs":{},"处":{"docs":{},"不":{"docs":{},"在":{"docs":{},"的":{"docs":{},"许":{"docs":{},"多":{"docs":{},"常":{"docs":{},"见":{"docs":{},"的":{"docs":{},"的":{"docs":{},"类":{"docs":{},"型":{"docs":{},",":{"docs":{},"函":{"docs":{},"数":{"docs":{},"以":{"docs":{},"及":{"docs":{},"运":{"docs":{},"算":{"docs":{},"符":{"docs":{},"都":{"docs":{},"由":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{},"标":{"docs":{},"准":{"docs":{},"库":{"docs":{},"来":{"docs":{},"定":{"docs":{},"义":{"docs":{},"。":{"docs":{},"虽":{"docs":{},"然":{"docs":{},"这":{"docs":{},"些":{"docs":{},"类":{"docs":{},"型":{"docs":{},",":{"docs":{},"函":{"docs":{},"数":{"docs":{},"和":{"docs":{},"运":{"docs":{},"算":{"docs":{},"符":{"docs":{},"不":{"docs":{},"是":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.041666666666666664}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.005875440658049354},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},"中":{"docs":{},"匹":{"docs":{},"配":{"docs":{},"到":{"docs":{},"的":{"docs":{},"子":{"docs":{},"句":{"docs":{},"之":{"docs":{},"后":{"docs":{},",":{"docs":{},"程":{"docs":{},"序":{"docs":{},"会":{"docs":{},"退":{"docs":{},"出":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{},"语":{"docs":{},"句":{"docs":{},",":{"docs":{},"并":{"docs":{},"不":{"docs":{},"会":{"docs":{},"继":{"docs":{},"续":{"docs":{},"向":{"docs":{},"下":{"docs":{},"运":{"docs":{},"行":{"docs":{},",":{"docs":{},"所":{"docs":{},"以":{"docs":{},"不":{"docs":{},"需":{"docs":{},"要":{"docs":{},"在":{"docs":{},"每":{"docs":{},"个":{"docs":{},"子":{"docs":{},"句":{"docs":{},"结":{"docs":{},"尾":{"docs":{},"写":{"docs":{},"b":{"docs":{},"r":{"docs":{},"e":{"docs":{},"a":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"w":{"docs":{},"i":{"docs":{},"c":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}},"m":{"docs":{},"e":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}},"y":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{},"(":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}},"a":{"docs":{},"g":{"docs":{},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{},"(":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}}}}}}},"。":{"docs":{},"上":{"docs":{},"面":{"docs":{},"的":{"docs":{},"例":{"docs":{},"子":{"docs":{},"展":{"docs":{},"示":{"docs":{},"的":{"docs":{},"是":{"docs":{},"用":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"a":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"和":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"b":{"docs":{},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"函":{"docs":{},"数":{"docs":{},"时":{"docs":{},",":{"docs":{},"在":{"docs":{},"圆":{"docs":{},"括":{"docs":{},"号":{"docs":{},"中":{"docs":{},"传":{"docs":{},"给":{"docs":{},"它":{"docs":{},"一":{"docs":{},"个":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"实":{"docs":{},"参":{"docs":{},"。":{"docs":{},"因":{"docs":{},"为":{"docs":{},"这":{"docs":{},"个":{"docs":{},"函":{"docs":{},"数":{"docs":{},"返":{"docs":{},"回":{"docs":{},"一":{"docs":{},"个":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"值":{"docs":{},",":{"docs":{},"s":{"docs":{},"a":{"docs":{},"y":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{},"可":{"docs":{},"以":{"docs":{},"被":{"docs":{},"包":{"docs":{},"含":{"docs":{},"在":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"l":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"的":{"docs":{},"函":{"docs":{},"数":{"docs":{},"体":{"docs":{},"中":{"docs":{},",":{"docs":{},"先":{"docs":{},"定":{"docs":{},"义":{"docs":{},"了":{"docs":{},"一":{"docs":{},"个":{"docs":{},"新":{"docs":{},"的":{"docs":{},"名":{"docs":{},"为":{"docs":{},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"的":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"常":{"docs":{},"量":{"docs":{},",":{"docs":{},"同":{"docs":{},"时":{"docs":{},"赋":{"docs":{},"值":{"docs":{},"了":{"docs":{},"给":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{},"的":{"docs":{},"一":{"docs":{},"个":{"docs":{},"简":{"docs":{},"单":{"docs":{},"问":{"docs":{},"候":{"docs":{},"消":{"docs":{},"息":{"docs":{},"。":{"docs":{},"然":{"docs":{},"后":{"docs":{},"用":{"docs":{},"r":{"docs":{},"e":{"docs":{},"t":{"docs":{},"u":{"docs":{},"r":{"docs":{},"n":{"docs":{},"关":{"docs":{},"键":{"docs":{},"字":{"docs":{},"把":{"docs":{},"这":{"docs":{},"个":{"docs":{},"问":{"docs":{},"候":{"docs":{},"返":{"docs":{},"回":{"docs":{},"出":{"docs":{},"去":{"docs":{},"。":{"docs":{},"一":{"docs":{},"旦":{"docs":{},"r":{"docs":{},"e":{"docs":{},"t":{"docs":{},"u":{"docs":{},"r":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"c":{"docs":{},"o":{"docs":{},"r":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}}}}},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":1.6776960784313724}}}}}},"e":{"docs":{},"n":{"docs":{},"e":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.025735294117647058}},".":{"docs":{},"h":{"docs":{},"a":{"docs":{},"s":{"docs":{},"p":{"docs":{},"r":{"docs":{},"e":{"docs":{},"f":{"docs":{},"i":{"docs":{},"x":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}}}}}}}}},"e":{"docs":{},"c":{"docs":{},"o":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.056910569105691054}},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"l":{"docs":{},"o":{"docs":{},"o":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}}}}}}}}}}}}},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"l":{"docs":{},"f":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},".":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}},"被":{"docs":{},"用":{"docs":{},"来":{"docs":{},"区":{"docs":{},"别":{"docs":{},"实":{"docs":{},"例":{"docs":{},"变":{"docs":{},"量":{"docs":{},"。":{"docs":{},"当":{"docs":{},"你":{"docs":{},"创":{"docs":{},"建":{"docs":{},"实":{"docs":{},"例":{"docs":{},"的":{"docs":{},"时":{"docs":{},"候":{"docs":{},",":{"docs":{},"像":{"docs":{},"传":{"docs":{},"入":{"docs":{},"函":{"docs":{},"数":{"docs":{},"参":{"docs":{},"数":{"docs":{},"一":{"docs":{},"样":{"docs":{},"给":{"docs":{},"类":{"docs":{},"传":{"docs":{},"入":{"docs":{},"构":{"docs":{},"造":{"docs":{},"器":{"docs":{},"的":{"docs":{},"参":{"docs":{},"数":{"docs":{},"。":{"docs":{},"每":{"docs":{},"个":{"docs":{},"属":{"docs":{},"性":{"docs":{},"都":{"docs":{},"需":{"docs":{},"要":{"docs":{},"赋":{"docs":{},"值":{"docs":{},"—":{"docs":{},"—":{"docs":{},"无":{"docs":{},"论":{"docs":{},"是":{"docs":{},"通":{"docs":{},"过":{"docs":{},"声":{"docs":{},"明":{"docs":{},"(":{"docs":{},"就":{"docs":{},"像":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},")":{"docs":{},"还":{"docs":{},"是":{"docs":{},"通":{"docs":{},"过":{"docs":{},"构":{"docs":{},"造":{"docs":{},"器":{"docs":{},"(":{"docs":{},"就":{"docs":{},"像":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"q":{"docs":{},"u":{"docs":{},"e":{"docs":{},"n":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}},"r":{"docs":{},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"e":{"docs":{},"s":{"docs":{},"p":{"docs":{},"o":{"docs":{},"n":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483}},"e":{"docs":{},".":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"o":{"docs":{},"r":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"o":{"docs":{},"u":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}},"r":{"docs":{},"e":{"docs":{},"s":{"docs":{},"u":{"docs":{},"l":{"docs":{},"t":{"docs":{},"(":{"docs":{},"\"":{"6":{"docs":{},":":{"0":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}},"和":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"-":{"docs":{},"c":{"docs":{},"l":{"docs":{},"a":{"docs":{},"u":{"docs":{},"s":{"docs":{"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.08333333333333333}},"e":{"docs":{},"­":{"docs":{},"o":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.08333333333333333}}}}}}}}}}}}}}}}},"v":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}},"h":{"docs":{},"a":{"docs":{},"p":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.007050528789659225}},".":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}},"类":{"docs":{},"缺":{"docs":{},"少":{"docs":{},"了":{"docs":{},"一":{"docs":{},"些":{"docs":{},"重":{"docs":{},"要":{"docs":{},"的":{"docs":{},"东":{"docs":{},"西":{"docs":{},":":{"docs":{},"一":{"docs":{},"个":{"docs":{},"构":{"docs":{},"造":{"docs":{},"函":{"docs":{},"数":{"docs":{},"来":{"docs":{},"初":{"docs":{},"始":{"docs":{},"化":{"docs":{},"类":{"docs":{},"实":{"docs":{},"例":{"docs":{},"。":{"docs":{},"使":{"docs":{},"用":{"docs":{},"i":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"o":{"docs":{},"p":{"docs":{},"p":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"l":{"docs":{},"i":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"[":{"1":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}}}}}}}}}}},"u":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483}},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.012925969447708578}}}}}}}}}},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"e":{"docs":{},"c":{"docs":{},"l":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.01527614571092832}}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"u":{"docs":{},"c":{"docs":{},"t":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"e":{"docs":{},"时":{"docs":{},"候":{"docs":{},"m":{"docs":{},"u":{"docs":{},"t":{"docs":{},"a":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"关":{"docs":{},"键":{"docs":{},"字":{"docs":{},"用":{"docs":{},"来":{"docs":{},"标":{"docs":{},"记":{"docs":{},"一":{"docs":{},"个":{"docs":{},"会":{"docs":{},"修":{"docs":{},"改":{"docs":{},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},"的":{"docs":{},"方":{"docs":{},"法":{"docs":{},"。":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"c":{"docs":{},"l":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"x":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}},"z":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"(":{"1":{"0":{"0":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"docs":{}},"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{},"e":{"docs":{},"(":{"docs":{},"o":{"docs":{},"f":{"docs":{},"i":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{},"i":{"docs":{},"a":{"docs":{},"l":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}},"f":{"docs":{},"u":{"docs":{},"n":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"t":{"docs":{},"h":{"docs":{},"a":{"docs":{},"t":{"docs":{},"t":{"docs":{},"a":{"docs":{},"k":{"docs":{},"e":{"docs":{},"s":{"docs":{},"a":{"docs":{},"c":{"docs":{},"l":{"docs":{},"o":{"docs":{},"s":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}},"e":{"docs":{},"(":{"docs":{},"c":{"docs":{},"l":{"docs":{},"o":{"docs":{},"s":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":3.3597185576077395}},"(":{"docs":{},"[":{"1":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.021108179419525065}}}}}}}},"u":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"p":{"docs":{},"a":{"docs":{},"d":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}}}},"r":{"docs":{},"k":{"docs":{},"l":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}}}}}}},"i":{"docs":{},"c":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.011750881316098707}},"e":{"docs":{},"(":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483}}}}}}}}}}}}},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}},"t":{"docs":{},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"r":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.007352941176470588}}},"2":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0282021151586369},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.01060070671378092},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":1.705269607843137},"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.09523809523809523},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.0712401055408971},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},"(":{"docs":{},"s":{"docs":{},"e":{"docs":{},"l":{"docs":{},"f":{"docs":{},".":{"docs":{},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}},"w":{"docs":{},"i":{"docs":{},"d":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}},"”":{"docs":{},"的":{"docs":{},"意":{"docs":{},"思":{"docs":{},"是":{"docs":{},"“":{"docs":{},"可":{"docs":{},"以":{"docs":{},"存":{"docs":{},"储":{"docs":{},"任":{"docs":{},"意":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}},",":{"docs":{},"你":{"docs":{},"绝":{"docs":{},"对":{"docs":{},"不":{"docs":{},"可":{"docs":{},"能":{"docs":{},"不":{"docs":{},"小":{"docs":{},"心":{"docs":{},"传":{"docs":{},"进":{"docs":{},"去":{"docs":{},"一":{"docs":{},"个":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}},"名":{"docs":{},"字":{"docs":{},"为":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}},"类":{"docs":{},"型":{"docs":{},"安":{"docs":{},"全":{"docs":{},"会":{"docs":{},"阻":{"docs":{},"止":{"docs":{},"你":{"docs":{},"不":{"docs":{},"小":{"docs":{},"心":{"docs":{},"传":{"docs":{},"入":{"docs":{},"一":{"docs":{},"个":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}},"p":{"docs":{},"l":{"docs":{},"u":{"docs":{},"s":{"docs":{},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}},"u":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}},"u":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}},"o":{"docs":{},"n":{"docs":{},"g":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}},"u":{"docs":{},"c":{"docs":{},"c":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.06504065040650407}},".":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}},"添":{"docs":{},"加":{"docs":{},"一":{"docs":{},"个":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{},"o":{"docs":{},"r":{"docs":{},"方":{"docs":{},"法":{"docs":{},",":{"docs":{},"对":{"docs":{},"s":{"docs":{},"p":{"docs":{},"a":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"和":{"docs":{},"c":{"docs":{},"l":{"docs":{},"u":{"docs":{},"b":{"docs":{},"s":{"docs":{},"返":{"docs":{},"回":{"docs":{},"“":{"docs":{},"b":{"docs":{},"l":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"”":{"docs":{},",":{"docs":{},"对":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{},"s":{"docs":{},"和":{"docs":{},"d":{"docs":{},"i":{"docs":{},"a":{"docs":{},"m":{"docs":{},"o":{"docs":{},"n":{"docs":{},"d":{"docs":{},"s":{"docs":{},"返":{"docs":{},"回":{"docs":{},"“":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"用":{"docs":{},"来":{"docs":{},"描":{"docs":{},"述":{"docs":{},"扑":{"docs":{},"克":{"docs":{},"牌":{"docs":{},"的":{"docs":{},"四":{"docs":{},"种":{"docs":{},"花":{"docs":{},"色":{"docs":{},",":{"docs":{},"并":{"docs":{},"分":{"docs":{},"别":{"docs":{},"用":{"docs":{},"一":{"docs":{},"个":{"docs":{},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}},"o":{"docs":{},"f":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"(":{"4":{"2":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}},"n":{"docs":{},"r":{"docs":{},"i":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}}}}}},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},".":{"docs":{},"i":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{},"(":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}}}}},"n":{"docs":{},"a":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}},"y":{"docs":{},"n":{"docs":{},"t":{"docs":{},"a":{"docs":{},"x":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}},"u":{"0":{"0":{"0":{"1":{"docs":{},"f":{"4":{"9":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}},"2":{"6":{"6":{"5":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"docs":{}},"docs":{}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}},"n":{"docs":{},"d":{"docs":{},"e":{"docs":{},"f":{"docs":{},"i":{"docs":{},"n":{"docs":{},"e":{"docs":{},"d":{"docs":{},"u":{"docs":{},"n":{"docs":{},"d":{"docs":{},"e":{"docs":{},"f":{"docs":{},"i":{"docs":{},"n":{"docs":{"index.html#gitbook_3723":{"ref":"index.html#gitbook_3723","tf":0.1111111111111111},"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter1/chapter1.html#gitbook_3726":{"ref":"chapter1/chapter1.html#gitbook_3726","tf":0.25},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647},"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/09_Classes_and_Structures.html#gitbook_3735":{"ref":"chapter2/09_Classes_and_Structures.html#gitbook_3735","tf":1},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009},"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745":{"ref":"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745","tf":0.16666666666666666},"chapter2/chapter2.html#gitbook_3750":{"ref":"chapter2/chapter2.html#gitbook_3750","tf":0.3333333333333333},"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.041666666666666664}}}}}}}}}}}}}}}},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":1.7310049019607843}},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}},"v":{"docs":{},"i":{"docs":{},"e":{"docs":{},"w":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}}}}}}}}}},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"u":{"docs":{},"s":{"docs":{},"u":{"docs":{},"a":{"docs":{},"l":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"a":{"docs":{},"g":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}}}}}}}}},".":{"docs":{},"g":{"docs":{},"e":{"docs":{},"n":{"docs":{},"e":{"docs":{},"r":{"docs":{},"a":{"docs":{},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{},"e":{"docs":{},".":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"n":{"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{},"t":{"1":{"6":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}},"(":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}},"有":{"docs":{},"一":{"docs":{},"个":{"docs":{},"构":{"docs":{},"造":{"docs":{},"器":{"docs":{},",":{"docs":{},"可":{"docs":{},"以":{"docs":{},"接":{"docs":{},"受":{"docs":{},"一":{"docs":{},"个":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"8":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"值":{"docs":{},",":{"docs":{},"所":{"docs":{},"以":{"docs":{},"这":{"docs":{},"个":{"docs":{},"构":{"docs":{},"造":{"docs":{},"器":{"docs":{},"可":{"docs":{},"以":{"docs":{},"用":{"docs":{},"现":{"docs":{},"有":{"docs":{},"的":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"8":{"docs":{},"来":{"docs":{},"创":{"docs":{},"建":{"docs":{},"一":{"docs":{},"个":{"docs":{},"新":{"docs":{},"的":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"1":{"6":{"docs":{},"。":{"docs":{},"注":{"docs":{},"意":{"docs":{},",":{"docs":{},"你":{"docs":{},"并":{"docs":{},"不":{"docs":{},"能":{"docs":{},"传":{"docs":{},"入":{"docs":{},"任":{"docs":{},"意":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"值":{"docs":{},",":{"docs":{},"只":{"docs":{},"能":{"docs":{},"传":{"docs":{},"入":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"1":{"6":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}},"docs":{}}}}}}}}}}}}}}}}}},",":{"docs":{},"可":{"docs":{},"以":{"docs":{},"进":{"docs":{},"行":{"docs":{},"相":{"docs":{},"加":{"docs":{},"。":{"docs":{},"目":{"docs":{},"标":{"docs":{},"常":{"docs":{},"量":{"docs":{},"t":{"docs":{},"w":{"docs":{},"o":{"docs":{},"t":{"docs":{},"h":{"docs":{},"o":{"docs":{},"u":{"docs":{},"s":{"docs":{},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"的":{"docs":{},"类":{"docs":{},"型":{"docs":{},"被":{"docs":{},"推":{"docs":{},"测":{"docs":{},"为":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"1":{"6":{"docs":{},",":{"docs":{},"因":{"docs":{},"为":{"docs":{},"它":{"docs":{},"是":{"docs":{},"两":{"docs":{},"个":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"1":{"6":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"docs":{}},"3":{"2":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"8":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0176678445229682},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},".":{"docs":{},"m":{"docs":{},"a":{"docs":{},"x":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}},"i":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}},"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}},",":{"docs":{},"除":{"docs":{},"非":{"docs":{},"你":{"docs":{},"真":{"docs":{},"的":{"docs":{},"需":{"docs":{},"要":{"docs":{},"存":{"docs":{},"储":{"docs":{},"一":{"docs":{},"个":{"docs":{},"和":{"docs":{},"当":{"docs":{},"前":{"docs":{},"平":{"docs":{},"台":{"docs":{},"原":{"docs":{},"生":{"docs":{},"字":{"docs":{},"长":{"docs":{},"相":{"docs":{},"同":{"docs":{},"的":{"docs":{},"无":{"docs":{},"符":{"docs":{},"号":{"docs":{},"整":{"docs":{},"数":{"docs":{},"。":{"docs":{},"除":{"docs":{},"了":{"docs":{},"这":{"docs":{},"种":{"docs":{},"情":{"docs":{},"况":{"docs":{},",":{"docs":{},"最":{"docs":{},"好":{"docs":{},"使":{"docs":{},"用":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},",":{"docs":{},"即":{"docs":{},"使":{"docs":{},"你":{"docs":{},"要":{"docs":{},"存":{"docs":{},"储":{"docs":{},"的":{"docs":{},"值":{"docs":{},"已":{"docs":{},"知":{"docs":{},"是":{"docs":{},"非":{"docs":{},"负":{"docs":{},"的":{"docs":{},"。":{"docs":{},"统":{"docs":{},"一":{"docs":{},"使":{"docs":{},"用":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"+":{"0":{"0":{"2":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"6":{"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"docs":{}},"docs":{}},"1":{"docs":{},"f":{"4":{"3":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"docs":{}},"9":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"docs":{}},"docs":{}}},"2":{"6":{"6":{"5":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"docs":{}},"docs":{}},"docs":{},"d":{"8":{"3":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}},"docs":{}},"docs":{},"c":{"3":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"docs":{}}}},"p":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"c":{"docs":{},"a":{"docs":{},"s":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}},"s":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"t":{"docs":{},"f":{"1":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}},"c":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}},"v":{"docs":{},"i":{"docs":{},"e":{"docs":{},"w":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}},"docs":{}},"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}},"v":{"docs":{},"i":{"docs":{},"e":{"docs":{},"w":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}},"docs":{},"-":{"1":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.014705882352941176}}},"docs":{}},"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.014705882352941176}},"u":{"docs":{},"t":{"docs":{},"f":{"docs":{},"-":{"1":{"6":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":1.6666666666666665}}}}}}}}},"docs":{}},"docs":{}}}}}},"docs":{}}}}},"w":{"docs":{},"w":{"docs":{},"d":{"docs":{},"c":{"docs":{"index.html#gitbook_3723":{"ref":"index.html#gitbook_3723","tf":0.1111111111111111}}}}},"o":{"docs":{},"r":{"docs":{},"l":{"docs":{},"d":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"k":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}},"a":{"docs":{},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"c":{"docs":{},"r":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}},"h":{"docs":{},"e":{"docs":{},"r":{"docs":{},"e":{"docs":{},",":{"docs":{},"只":{"docs":{},"在":{"docs":{},"冒":{"docs":{},"号":{"docs":{},"后":{"docs":{},"面":{"docs":{},"写":{"docs":{},"接":{"docs":{},"口":{"docs":{},"或":{"docs":{},"者":{"docs":{},"类":{"docs":{},"名":{"docs":{},"。":{"docs":{},"&":{"docs":{},"l":{"docs":{},"t":{"docs":{},";":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"s":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}},"i":{"docs":{},"d":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"l":{"docs":{},"a":{"docs":{},"b":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}},"l":{"docs":{},"l":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"和":{"docs":{},"d":{"docs":{},"i":{"docs":{},"d":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}},"s":{"docs":{},"e":{"docs":{},"w":{"docs":{},"o":{"docs":{},"r":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.01060070671378092}},"e":{"docs":{},"变":{"docs":{},"量":{"docs":{},"添":{"docs":{},"加":{"docs":{},"了":{"docs":{},"类":{"docs":{},"型":{"docs":{},"标":{"docs":{},"注":{"docs":{},",":{"docs":{},"表":{"docs":{},"示":{"docs":{},"这":{"docs":{},"个":{"docs":{},"变":{"docs":{},"量":{"docs":{},"可":{"docs":{},"以":{"docs":{},"存":{"docs":{},"储":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"'":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}},"r":{"docs":{},"i":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}},"a":{"docs":{},"r":{"docs":{},"c":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808},"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745":{"ref":"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745","tf":0.16666666666666666}},"为":{"docs":{},"了":{"docs":{},"能":{"docs":{},"帮":{"docs":{},"助":{"docs":{},"你":{"docs":{},"管":{"docs":{},"理":{"docs":{},"内":{"docs":{},"存":{"docs":{},",":{"docs":{},"需":{"docs":{},"要":{"docs":{},"更":{"docs":{},"多":{"docs":{},"的":{"docs":{},"关":{"docs":{},"于":{"docs":{},"你":{"docs":{},"的":{"docs":{},"代":{"docs":{},"码":{"docs":{},"之":{"docs":{},"间":{"docs":{},"关":{"docs":{},"系":{"docs":{},"的":{"docs":{},"信":{"docs":{},"息":{"docs":{},"。":{"docs":{},"本":{"docs":{},"章":{"docs":{},"描":{"docs":{},"述":{"docs":{},"了":{"docs":{},"这":{"docs":{},"些":{"docs":{},"情":{"docs":{},"况":{"docs":{},",":{"docs":{},"并":{"docs":{},"且":{"docs":{},"为":{"docs":{},"你":{"docs":{},"示":{"docs":{},"范":{"docs":{},"怎":{"docs":{},"样":{"docs":{},"启":{"docs":{},"用":{"docs":{},"a":{"docs":{},"r":{"docs":{},"c":{"docs":{"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745":{"ref":"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745","tf":0.16666666666666666}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"会":{"docs":{},"分":{"docs":{},"配":{"docs":{},"一":{"docs":{},"大":{"docs":{},"块":{"docs":{},"内":{"docs":{},"存":{"docs":{},"用":{"docs":{},"来":{"docs":{},"储":{"docs":{},"存":{"docs":{},"实":{"docs":{},"例":{"docs":{},"的":{"docs":{},"信":{"docs":{},"息":{"docs":{},"。":{"docs":{},"内":{"docs":{},"存":{"docs":{},"中":{"docs":{},"会":{"docs":{},"包":{"docs":{},"含":{"docs":{},"实":{"docs":{},"例":{"docs":{},"的":{"docs":{},"类":{"docs":{},"型":{"docs":{},"信":{"docs":{},"息":{"docs":{},",":{"docs":{},"以":{"docs":{},"及":{"docs":{},"这":{"docs":{},"个":{"docs":{},"实":{"docs":{},"例":{"docs":{},"所":{"docs":{},"有":{"docs":{},"相":{"docs":{},"关":{"docs":{},"属":{"docs":{},"性":{"docs":{},"的":{"docs":{},"值":{"docs":{},"。":{"docs":{},"此":{"docs":{},"外":{"docs":{},",":{"docs":{},"当":{"docs":{},"实":{"docs":{},"例":{"docs":{},"不":{"docs":{},"再":{"docs":{},"被":{"docs":{},"使":{"docs":{},"用":{"docs":{},"时":{"docs":{},",":{"docs":{},"a":{"docs":{},"r":{"docs":{},"c":{"docs":{"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745":{"ref":"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745","tf":0.16666666666666666}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"跟":{"docs":{},"踪":{"docs":{},"和":{"docs":{},"计":{"docs":{},"算":{"docs":{},"每":{"docs":{},"一":{"docs":{},"个":{"docs":{},"类":{"docs":{},"实":{"docs":{},"例":{"docs":{},"正":{"docs":{},"在":{"docs":{},"被":{"docs":{},"多":{"docs":{},"少":{"docs":{},"属":{"docs":{},"性":{"docs":{},",":{"docs":{},"常":{"docs":{},"量":{"docs":{},"和":{"docs":{},"变":{"docs":{},"量":{"docs":{},"所":{"docs":{},"引":{"docs":{},"用":{"docs":{},"。":{"docs":{},"哪":{"docs":{},"怕":{"docs":{},"实":{"docs":{},"例":{"docs":{},"的":{"docs":{},"引":{"docs":{},"用":{"docs":{},"数":{"docs":{},"为":{"docs":{},"一":{"docs":{},",":{"docs":{},"a":{"docs":{},"r":{"docs":{},"c":{"docs":{"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745":{"ref":"chapter2/16_Automatic_Reference_Counting.html#gitbook_3745","tf":0.16666666666666666}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"e":{"docs":{},"a":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},"r":{"docs":{},"a":{"docs":{},"y":{"docs":{},"和":{"docs":{},"d":{"docs":{},"i":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}},"i":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}},"g":{"docs":{},"u":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}},"u":{"docs":{},"t":{"docs":{},"o":{"docs":{},"m":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808}}}}}}}},".":{"docs":{},"a":{"docs":{},"d":{"docs":{},"j":{"docs":{},"u":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.024390243902439025}},"e":{"docs":{},".":{"docs":{},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}},"t":{"1":{"docs":{},"s":{"docs":{},"c":{"docs":{},"e":{"docs":{},"n":{"docs":{},"e":{"docs":{},"c":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}}}}}}}}}},"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.02389705882352941}}}},"d":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}},"o":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"e":{"docs":{},"(":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}},"j":{"docs":{},"u":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.007050528789659225}}}}}}},"m":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.029023746701846966}}}}}}},"n":{"docs":{},"o":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"e":{"docs":{},"r":{"docs":{},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}},"i":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}}}},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"y":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}}},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"y":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{},"m":{"docs":{},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"s":{"docs":{},"(":{"docs":{},"[":{"1":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}}}}}}}}}}}}}}}}}},"n":{"docs":{},"a":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.047619047619047616}}}}},"p":{"docs":{},"p":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483}},"e":{"docs":{},"s":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"u":{"docs":{},"m":{"docs":{},"m":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}},"l":{"docs":{},"i":{"docs":{},"k":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}},"e":{"docs":{},"x":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}},"s":{"docs":{},"o":{"docs":{},"i":{"docs":{},"n":{"docs":{},"c":{"docs":{},"r":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"b":{"docs":{},"y":{"docs":{},"t":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"c":{"docs":{},"i":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}},"g":{"docs":{},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.047619047619047616}}}}}}},"c":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.028268551236749116},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},"o":{"docs":{},"c":{"docs":{},"o":{"docs":{},"a":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.07142857142857142},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.012867647058823529}},"的":{"docs":{},"基":{"docs":{},"础":{"docs":{},"上":{"docs":{},"构":{"docs":{},"建":{"docs":{},"框":{"docs":{},"架":{"docs":{},"栈":{"docs":{},"并":{"docs":{},"将":{"docs":{},"其":{"docs":{},"标":{"docs":{},"准":{"docs":{},"化":{"docs":{},"。":{"docs":{},"o":{"docs":{},"b":{"docs":{},"j":{"docs":{},"e":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"v":{"docs":{},"e":{"docs":{},"-":{"docs":{},"c":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"里":{"docs":{},"的":{"docs":{},"n":{"docs":{},"s":{"docs":{},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{},"函":{"docs":{},"数":{"docs":{},"一":{"docs":{},"样":{"docs":{},",":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"l":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}},".":{"docs":{},"i":{"docs":{},"n":{"docs":{},"c":{"docs":{},"r":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"b":{"docs":{},"y":{"docs":{},"(":{"2":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}}}}}}}}}}}}}}},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"s":{"docs":{},"(":{"docs":{},"u":{"docs":{},"n":{"docs":{},"u":{"docs":{},"s":{"docs":{},"u":{"docs":{},"a":{"docs":{},"l":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"a":{"docs":{},"g":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"n":{"docs":{},"d":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"(":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"t":{"docs":{},"e":{"docs":{},"d":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}},"t":{"docs":{},"a":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}}}},"m":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0176678445229682}}}}}},"p":{"docs":{},"i":{"docs":{},"l":{"docs":{},"e":{"docs":{},"-":{"docs":{},"t":{"docs":{},"i":{"docs":{},"m":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}},"的":{"docs":{},"兼":{"docs":{},"容":{"docs":{},"性":{"docs":{},"的":{"docs":{},"限":{"docs":{},"制":{"docs":{},"。":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808}}}}}}}}}}}}}}},"a":{"docs":{},"p":{"docs":{},"t":{"docs":{},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"u":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}},"u":{"docs":{},"l":{"docs":{},"e":{"docs":{},"t":{"docs":{},"'":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.012867647058823529}}}}}},"t":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":3.3359718557607736}}}}}}},"r":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"(":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"添":{"docs":{},"加":{"docs":{},"一":{"docs":{},"个":{"docs":{},"方":{"docs":{},"法":{"docs":{},",":{"docs":{},"创":{"docs":{},"建":{"docs":{},"一":{"docs":{},"副":{"docs":{},"完":{"docs":{},"整":{"docs":{},"的":{"docs":{},"扑":{"docs":{},"克":{"docs":{},"牌":{"docs":{},"并":{"docs":{},"把":{"docs":{},"每":{"docs":{},"张":{"docs":{},"牌":{"docs":{},"的":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{},"和":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}},"s":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.024676850763807285},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.04065040650406504}}}},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},"f":{"docs":{},"i":{"docs":{},"s":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"n":{"docs":{},"n":{"docs":{},"o":{"docs":{},"t":{"docs":{},"b":{"docs":{},"e":{"docs":{},"n":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}},"h":{"docs":{},"e":{"docs":{},"e":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.022058823529411766},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},"e":{"docs":{},"r":{"1":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.009191176470588236}}},"2":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"docs":{},"p":{"docs":{},"l":{"docs":{},"u":{"docs":{},"s":{"docs":{},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"s":{"docs":{},")":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"字":{"docs":{},"面":{"docs":{},"量":{"docs":{},"初":{"docs":{},"始":{"docs":{},"化":{"docs":{},"空":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"可":{"docs":{},"变":{"docs":{},"性":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"是":{"docs":{},"值":{"docs":{},"类":{"docs":{},"型":{"docs":{},"使":{"docs":{},"用":{"docs":{},"字":{"docs":{},"符":{"docs":{},"(":{"docs":{},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"a":{"docs":{},"c":{"docs":{},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},")":{"docs":{},"计":{"docs":{},"算":{"docs":{},"字":{"docs":{},"符":{"docs":{},"数":{"docs":{},"量":{"docs":{},"连":{"docs":{},"接":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"和":{"docs":{},"字":{"docs":{},"符":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"插":{"docs":{},"值":{"docs":{},"比":{"docs":{},"较":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"相":{"docs":{},"等":{"docs":{},"前":{"docs":{},"缀":{"docs":{},"/":{"docs":{},"后":{"docs":{},"缀":{"docs":{},"相":{"docs":{},"等":{"docs":{},"大":{"docs":{},"写":{"docs":{},"和":{"docs":{},"小":{"docs":{},"写":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":1.6666666666666665}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"i":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}}},"l":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.010575793184488837}}}}},"u":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}},"o":{"docs":{},"s":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}},"u":{"docs":{},"c":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"r":{"docs":{},"r":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{},"i":{"docs":{},"n":{"docs":{},"a":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}},"y":{"docs":{},"c":{"docs":{},"l":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}},"f":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"d":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}}},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}},"r":{"docs":{},"-":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}},"c":{"docs":{},"e":{"docs":{},"-":{"docs":{},"u":{"docs":{},"n":{"docs":{},"w":{"docs":{},"r":{"docs":{},"a":{"docs":{},"p":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}},"i":{"docs":{},"n":{"docs":{},"c":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}},"a":{"docs":{},"i":{"docs":{},"l":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}},"l":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}},"i":{"docs":{},"b":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"c":{"docs":{},"c":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}},"r":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"l":{"docs":{},"o":{"docs":{},"o":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}}}}}}}}}}}},"v":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},"e":{"docs":{},"i":{"docs":{},"g":{"docs":{},"h":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"z":{"docs":{},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}},"l":{"docs":{},"o":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"并":{"docs":{},"指":{"docs":{},"定":{"docs":{},"初":{"docs":{},"始":{"docs":{},"值":{"docs":{},"为":{"4":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}}}}}}}},"表":{"docs":{},"示":{"3":{"2":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}}}}}},"r":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"s":{"docs":{},"u":{"docs":{},"m":{"docs":{},"m":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}},"i":{"docs":{},"e":{"docs":{},"n":{"docs":{},"d":{"docs":{},"l":{"docs":{},"y":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.02120141342756184}},"e":{"docs":{},"的":{"docs":{},"值":{"docs":{},"从":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{},"!":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"改":{"docs":{},"为":{"docs":{},"了":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"b":{"docs":{},"o":{"docs":{},"n":{"docs":{},"j":{"docs":{},"o":{"docs":{},"u":{"docs":{},"r":{"docs":{},"!":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}},"u":{"docs":{},"n":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0282021151586369},"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.047619047619047616},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.013192612137203167}},"来":{"docs":{},"声":{"docs":{},"明":{"docs":{},"一":{"docs":{},"个":{"docs":{},"函":{"docs":{},"数":{"docs":{},",":{"docs":{},"使":{"docs":{},"用":{"docs":{},"名":{"docs":{},"字":{"docs":{},"和":{"docs":{},"参":{"docs":{},"数":{"docs":{},"来":{"docs":{},"调":{"docs":{},"用":{"docs":{},"函":{"docs":{},"数":{"docs":{},"。":{"docs":{},"使":{"docs":{},"用":{"docs":{},"-":{"docs":{},"&":{"docs":{},"g":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":10.023809523809524},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}}}},"作":{"docs":{},"为":{"docs":{},"前":{"docs":{},"缀":{"docs":{},"。":{"docs":{},"指":{"docs":{},"定":{"docs":{},"函":{"docs":{},"数":{"docs":{},"返":{"docs":{},"回":{"docs":{},"类":{"docs":{},"型":{"docs":{},"时":{"docs":{},",":{"docs":{},"用":{"docs":{},"返":{"docs":{},"回":{"docs":{},"箭":{"docs":{},"头":{"docs":{},"-":{"docs":{},"&":{"docs":{},"g":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808},"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.005875440658049354},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.007352941176470588},"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.11904761904761904}}}},"p":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},"s":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}},"成":{"docs":{},"员":{"docs":{},":":{"docs":{},"给":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{},"s":{"docs":{},"常":{"docs":{},"量":{"docs":{},"赋":{"docs":{},"值":{"docs":{},"时":{"docs":{},",":{"docs":{},"枚":{"docs":{},"举":{"docs":{},"成":{"docs":{},"员":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{},".":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{},"s":{"docs":{},"需":{"docs":{},"要":{"docs":{},"用":{"docs":{},"全":{"docs":{},"名":{"docs":{},"来":{"docs":{},"引":{"docs":{},"用":{"docs":{},",":{"docs":{},"因":{"docs":{},"为":{"docs":{},"常":{"docs":{},"量":{"docs":{},"没":{"docs":{},"有":{"docs":{},"显":{"docs":{},"式":{"docs":{},"指":{"docs":{},"定":{"docs":{},"类":{"docs":{},"型":{"docs":{},"。":{"docs":{},"在":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{},"里":{"docs":{},",":{"docs":{},"枚":{"docs":{},"举":{"docs":{},"成":{"docs":{},"员":{"docs":{},"使":{"docs":{},"用":{"docs":{},"缩":{"docs":{},"写":{"docs":{},".":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{},"s":{"docs":{},"来":{"docs":{},"引":{"docs":{},"用":{"docs":{},",":{"docs":{},"因":{"docs":{},"为":{"docs":{},"s":{"docs":{},"e":{"docs":{},"l":{"docs":{},"f":{"docs":{},"的":{"docs":{},"值":{"docs":{},"已":{"docs":{},"经":{"docs":{},"知":{"docs":{},"道":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"y":{"docs":{},"m":{"docs":{},"b":{"docs":{},"o":{"docs":{},"l":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}},"x":{"docs":{},"a":{"docs":{},"d":{"docs":{},"e":{"docs":{},"c":{"docs":{},"i":{"docs":{},"m":{"docs":{},"a":{"docs":{},"l":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}},"r":{"docs":{},"e":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}},"a":{"docs":{},"s":{"docs":{},"a":{"docs":{},"n":{"docs":{},"y":{"docs":{},"m":{"docs":{},"a":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{},"e":{"docs":{},"s":{"docs":{},"(":{"docs":{},"l":{"docs":{},"i":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"p":{"docs":{},"r":{"docs":{},"e":{"docs":{},"f":{"docs":{},"i":{"docs":{},"x":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"/":{"docs":{},"h":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{},"u":{"docs":{},"f":{"docs":{},"f":{"docs":{},"i":{"docs":{},"x":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}}}}}}},"l":{"docs":{},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}},"i":{"docs":{},"g":{"docs":{},"h":{"docs":{},"l":{"docs":{},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}},"o":{"docs":{},"r":{"docs":{},"s":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}},"i":{"docs":{},"o":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.047619047619047616},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"f":{"docs":{},"和":{"docs":{},"l":{"docs":{},"e":{"docs":{},"t":{"docs":{},"来":{"docs":{},"处":{"docs":{},"理":{"docs":{},"值":{"docs":{},"缺":{"docs":{},"失":{"docs":{},"的":{"docs":{},"情":{"docs":{},"况":{"docs":{},"。":{"docs":{},"有":{"docs":{},"些":{"docs":{},"变":{"docs":{},"量":{"docs":{},"的":{"docs":{},"值":{"docs":{},"是":{"docs":{},"可":{"docs":{},"选":{"docs":{},"的":{"docs":{},"。":{"docs":{},"一":{"docs":{},"个":{"docs":{},"可":{"docs":{},"选":{"docs":{},"的":{"docs":{},"值":{"docs":{},"可":{"docs":{},"能":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"具":{"docs":{},"体":{"docs":{},"的":{"docs":{},"值":{"docs":{},"或":{"docs":{},"者":{"docs":{},"是":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"t":{"docs":{},"c":{"docs":{},"h":{"docs":{},"来":{"docs":{},"进":{"docs":{},"行":{"docs":{},"条":{"docs":{},"件":{"docs":{},"操":{"docs":{},"作":{"docs":{},",":{"docs":{},"使":{"docs":{},"用":{"docs":{},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"-":{"docs":{},"i":{"docs":{},"n":{"docs":{},"、":{"docs":{},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"、":{"docs":{},"w":{"docs":{},"h":{"docs":{},"i":{"docs":{},"l":{"docs":{},"e":{"docs":{},"和":{"docs":{},"d":{"docs":{},"o":{"docs":{},"-":{"docs":{},"w":{"docs":{},"h":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"语":{"docs":{},"句":{"docs":{},"中":{"docs":{},",":{"docs":{},"条":{"docs":{},"件":{"docs":{},"必":{"docs":{},"须":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"布":{"docs":{},"尔":{"docs":{},"表":{"docs":{},"达":{"docs":{},"式":{"docs":{},"—":{"docs":{},"—":{"docs":{},"这":{"docs":{},"意":{"docs":{},"味":{"docs":{},"着":{"docs":{},"像":{"docs":{},"i":{"docs":{},"f":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"i":{"docs":{},"c":{"docs":{},"i":{"docs":{},"t":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}},"o":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}},"a":{"docs":{},"g":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}},"n":{"docs":{},"c":{"docs":{},"r":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"(":{"7":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}},"b":{"docs":{},"y":{"docs":{},"(":{"docs":{},"a":{"docs":{},"m":{"docs":{},"o":{"docs":{},"u":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}},"s":{"docs":{},"e":{"docs":{},"v":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.0079155672823219}}}},"n":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}},"t":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.026385224274406333}}}}}}},"o":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.05013192612137203}}}}}}}}}}},"d":{"docs":{},"i":{"docs":{},"v":{"docs":{},"i":{"docs":{},"d":{"docs":{},"u":{"docs":{},"a":{"docs":{},"l":{"docs":{},"s":{"docs":{},"c":{"docs":{},"o":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}}}},"i":{"docs":{},"t":{"docs":{},"(":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}}},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}},"t":{"8":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}},".":{"docs":{},"m":{"docs":{},"a":{"docs":{},"x":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"常":{"docs":{},"量":{"docs":{},"或":{"docs":{},"者":{"docs":{},"变":{"docs":{},"量":{"docs":{},"可":{"docs":{},"以":{"docs":{},"存":{"docs":{},"储":{"docs":{},"的":{"docs":{},"数":{"docs":{},"字":{"docs":{},"范":{"docs":{},"围":{"docs":{},"是":{"docs":{},"-":{"1":{"2":{"8":{"docs":{},"~":{"1":{"2":{"7":{"docs":{},",":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"8":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"常":{"docs":{},"量":{"docs":{},"或":{"docs":{},"者":{"docs":{},"变":{"docs":{},"量":{"docs":{},"能":{"docs":{},"存":{"docs":{},"储":{"docs":{},"的":{"docs":{},"数":{"docs":{},"字":{"docs":{},"范":{"docs":{},"围":{"docs":{},"是":{"0":{"docs":{},"~":{"2":{"5":{"5":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}}}}}}}}}}}},"docs":{}}}}}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}},"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.024676850763807285},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.02120141342756184},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.021108179419525065},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.04878048780487805}},"e":{"docs":{},"r":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}},"p":{"docs":{},"o":{"docs":{},"l":{"docs":{},"a":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},")":{"docs":{},"的":{"docs":{},"方":{"docs":{},"式":{"docs":{},"把":{"docs":{},"常":{"docs":{},"量":{"docs":{},"名":{"docs":{},"或":{"docs":{},"者":{"docs":{},"变":{"docs":{},"量":{"docs":{},"名":{"docs":{},"当":{"docs":{},"做":{"docs":{},"占":{"docs":{},"位":{"docs":{},"符":{"docs":{},"加":{"docs":{},"入":{"docs":{},"到":{"docs":{},"长":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"中":{"docs":{},",":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{},"会":{"docs":{},"用":{"docs":{},"当":{"docs":{},"前":{"docs":{},"常":{"docs":{},"量":{"docs":{},"或":{"docs":{},"变":{"docs":{},"量":{"docs":{},"的":{"docs":{},"值":{"docs":{},"替":{"docs":{},"换":{"docs":{},"这":{"docs":{},"些":{"docs":{},"占":{"docs":{},"位":{"docs":{},"符":{"docs":{},"。":{"docs":{},"将":{"docs":{},"常":{"docs":{},"量":{"docs":{},"或":{"docs":{},"变":{"docs":{},"量":{"docs":{},"名":{"docs":{},"放":{"docs":{},"入":{"docs":{},"反":{"docs":{},"斜":{"docs":{},"杠":{"docs":{},"符":{"docs":{},"加":{"docs":{},"一":{"docs":{},"对":{"docs":{},"圆":{"docs":{},"括":{"docs":{},"号":{"docs":{},"中":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},"\\":{"docs":{},"(":{"docs":{},")":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"g":{"docs":{},"e":{"docs":{},"r":{"docs":{},"p":{"docs":{},"i":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}}}}}}}},"(":{"docs":{},"p":{"docs":{},"i":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":10}}}}}},"就":{"docs":{},"够":{"docs":{},"了":{"docs":{},"。":{"docs":{},"这":{"docs":{},"可":{"docs":{},"以":{"docs":{},"提":{"docs":{},"高":{"docs":{},"代":{"docs":{},"码":{"docs":{},"一":{"docs":{},"致":{"docs":{},"性":{"docs":{},"和":{"docs":{},"可":{"docs":{},"复":{"docs":{},"用":{"docs":{},"性":{"docs":{},"。":{"docs":{},"即":{"docs":{},"使":{"docs":{},"是":{"docs":{},"在":{"3":{"2":{"docs":{},"位":{"docs":{},"平":{"docs":{},"台":{"docs":{},"上":{"docs":{},",":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"可":{"docs":{},"以":{"docs":{},"存":{"docs":{},"储":{"docs":{},"的":{"docs":{},"整":{"docs":{},"数":{"docs":{},"范":{"docs":{},"围":{"docs":{},"也":{"docs":{},"可":{"docs":{},"以":{"docs":{},"达":{"docs":{},"到":{"docs":{},"-":{"2":{"1":{"4":{"7":{"4":{"8":{"3":{"6":{"4":{"8":{"docs":{},"~":{"2":{"1":{"4":{"7":{"4":{"8":{"3":{"6":{"4":{"7":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}},"是":{"docs":{},"整":{"docs":{},"型":{"docs":{},";":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"和":{"docs":{},"f":{"docs":{},"l":{"docs":{},"o":{"docs":{},"a":{"docs":{},"t":{"docs":{},"是":{"docs":{},"浮":{"docs":{},"点":{"docs":{},"型":{"docs":{},";":{"docs":{},"b":{"docs":{},"o":{"docs":{},"o":{"docs":{},"l":{"docs":{},"是":{"docs":{},"布":{"docs":{},"尔":{"docs":{},"型":{"docs":{},";":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"是":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"。":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"类":{"docs":{},"型":{"docs":{},"更":{"docs":{},"大":{"docs":{},"或":{"docs":{},"者":{"docs":{},"更":{"docs":{},"小":{"docs":{},"的":{"docs":{},"数":{"docs":{},"字":{"docs":{},"。":{"docs":{},"s":{"docs":{},"w":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"u":{"docs":{},"c":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}}}}},"o":{"docs":{},"u":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}}}}}}}},"s":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"o":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}},"b":{"docs":{},"j":{"docs":{},"e":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"v":{"docs":{},"e":{"docs":{},"-":{"docs":{},"c":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.09523809523809523},"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0176678445229682},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}},"c":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}},"s":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.047619047619047616},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"c":{"docs":{},"c":{"docs":{},"u":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"a":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"s":{"docs":{},"[":{"docs":{},"\"":{"docs":{},"j":{"docs":{},"a":{"docs":{},"y":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"t":{"docs":{},"a":{"docs":{},"l":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}},"p":{"docs":{},"t":{"docs":{"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.041666666666666664}},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},"a":{"docs":{},"l":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"e":{"docs":{},"改":{"docs":{},"成":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{},",":{"docs":{},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"会":{"docs":{},"是":{"docs":{},"什":{"docs":{},"么":{"docs":{},"?":{"docs":{},"添":{"docs":{},"加":{"docs":{},"一":{"docs":{},"个":{"docs":{},"e":{"docs":{},"l":{"docs":{},"s":{"docs":{},"e":{"docs":{},"语":{"docs":{},"句":{"docs":{},",":{"docs":{},"当":{"docs":{},"o":{"docs":{},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"l":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{},"是":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{},"时":{"docs":{},"给":{"docs":{},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"e":{"docs":{},"?":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{},"e":{"docs":{},"<":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}},"e":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}},"r":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"e":{"docs":{},"标":{"docs":{},"记":{"docs":{},"—":{"docs":{},"—":{"docs":{},"如":{"docs":{},"果":{"docs":{},"没":{"docs":{},"有":{"docs":{},"添":{"docs":{},"加":{"docs":{},"o":{"docs":{},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"就":{"docs":{},"重":{"docs":{},"写":{"docs":{},"父":{"docs":{},"类":{"docs":{},"方":{"docs":{},"法":{"docs":{},"的":{"docs":{},"话":{"docs":{},"编":{"docs":{},"译":{"docs":{},"器":{"docs":{},"会":{"docs":{},"报":{"docs":{},"错":{"docs":{},"。":{"docs":{},"编":{"docs":{},"译":{"docs":{},"器":{"docs":{},"同":{"docs":{},"样":{"docs":{},"会":{"docs":{},"检":{"docs":{},"测":{"docs":{},"o":{"docs":{},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},"e":{"docs":{},"m":{"docs":{},"i":{"docs":{},"l":{"docs":{},"l":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"x":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}},"u":{"docs":{},"t":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}},"p":{"docs":{},"u":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.010554089709762533},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.032520325203252036}}}}}}}},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"e":{"docs":{},"f":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}},"l":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"p":{"docs":{},"e":{"docs":{},"a":{"docs":{},"t":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"k":{"docs":{},"n":{"docs":{},"o":{"docs":{},"c":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}},"<":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{},"e":{"docs":{},">":{"docs":{},"(":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}},"s":{"docs":{},"u":{"docs":{},"l":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.005875440658049354}},"(":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},"u":{"docs":{},"n":{"docs":{},"r":{"docs":{},"i":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}},"t":{"docs":{},"u":{"docs":{},"r":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.03525264394829612},"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.047619047619047616},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.03430079155672823},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.032520325203252036}},"f":{"docs":{},"i":{"docs":{},"f":{"docs":{},"t":{"docs":{},"e":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}},"参":{"docs":{},"数":{"docs":{},"名":{"docs":{},"称":{"docs":{},"缩":{"docs":{},"写":{"docs":{},"运":{"docs":{},"算":{"docs":{},"符":{"docs":{},"函":{"docs":{},"数":{"docs":{},"t":{"docs":{},"r":{"docs":{},"a":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":3.333333333333333}}}}}}}}}}}}}}}}}}}}}},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.023746701846965697}}}}}}},"a":{"docs":{},"i":{"docs":{},"s":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"n":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.04878048780487805}},".":{"docs":{},"a":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},"f":{"docs":{},"r":{"docs":{},"o":{"docs":{},"m":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{},"(":{"3":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"docs":{}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{},"e":{"docs":{},"s":{"docs":{},".":{"docs":{},"f":{"docs":{},"i":{"docs":{},"r":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}},"s":{"docs":{},"e":{"docs":{},"c":{"docs":{},"o":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}},"和":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{},"嵌":{"docs":{},"套":{"docs":{},"在":{"docs":{},"b":{"docs":{},"l":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"j":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"c":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{},"中":{"docs":{},",":{"docs":{},"但":{"docs":{},"仍":{"docs":{},"可":{"docs":{},"被":{"docs":{},"引":{"docs":{},"用":{"docs":{},",":{"docs":{},"所":{"docs":{},"以":{"docs":{},"在":{"docs":{},"初":{"docs":{},"始":{"docs":{},"化":{"docs":{},"实":{"docs":{},"例":{"docs":{},"时":{"docs":{},"能":{"docs":{},"够":{"docs":{},"通":{"docs":{},"过":{"docs":{},"枚":{"docs":{},"举":{"docs":{},"类":{"docs":{},"型":{"docs":{},"中":{"docs":{},"的":{"docs":{},"成":{"docs":{},"员":{"docs":{},"名":{"docs":{},"称":{"docs":{},"单":{"docs":{},"独":{"docs":{},"引":{"docs":{},"用":{"docs":{},"。":{"docs":{},"在":{"docs":{},"上":{"docs":{},"面":{"docs":{},"的":{"docs":{},"例":{"docs":{},"子":{"docs":{},"中":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"属":{"docs":{},"性":{"docs":{},"能":{"docs":{},"正":{"docs":{},"确":{"docs":{},"得":{"docs":{},"输":{"docs":{},"出":{"docs":{},"对":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},"牌":{"docs":{},"有":{"1":{"docs":{},"和":{"1":{"1":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"在":{"docs":{},"自":{"docs":{},"己":{"docs":{},"内":{"docs":{},"部":{"docs":{},"定":{"docs":{},"义":{"docs":{},"了":{"docs":{},"一":{"docs":{},"个":{"docs":{},"嵌":{"docs":{},"套":{"docs":{},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{},"e":{"docs":{},"s":{"docs":{},"。":{"docs":{},"这":{"docs":{},"个":{"docs":{},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},"包":{"docs":{},"含":{"docs":{},"两":{"docs":{},"个":{"docs":{},"变":{"docs":{},"量":{"docs":{},",":{"docs":{},"只":{"docs":{},"有":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},"有":{"docs":{},"两":{"docs":{},"个":{"docs":{},"数":{"docs":{},"值":{"docs":{},",":{"docs":{},"其":{"docs":{},"余":{"docs":{},"牌":{"docs":{},"都":{"docs":{},"只":{"docs":{},"有":{"docs":{},"一":{"docs":{},"个":{"docs":{},"数":{"docs":{},"值":{"docs":{},"。":{"docs":{},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"定":{"docs":{},"义":{"docs":{},"了":{"docs":{},"一":{"docs":{},"个":{"docs":{},"计":{"docs":{},"算":{"docs":{},"属":{"docs":{},"性":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{},"e":{"docs":{},"s":{"docs":{},",":{"docs":{},"这":{"docs":{},"个":{"docs":{},"计":{"docs":{},"算":{"docs":{},"属":{"docs":{},"性":{"docs":{},"会":{"docs":{},"根":{"docs":{},"据":{"docs":{},"牌":{"docs":{},"的":{"docs":{},"面":{"docs":{},"值":{"docs":{},",":{"docs":{},"用":{"docs":{},"适":{"docs":{},"当":{"docs":{},"的":{"docs":{},"数":{"docs":{},"值":{"docs":{},"去":{"docs":{},"初":{"docs":{},"始":{"docs":{},"化":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{},"e":{"docs":{},"s":{"docs":{},"实":{"docs":{},"例":{"docs":{},",":{"docs":{},"并":{"docs":{},"赋":{"docs":{},"值":{"docs":{},"给":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{},"e":{"docs":{},"s":{"docs":{},"。":{"docs":{},"对":{"docs":{},"于":{"docs":{},"j":{"docs":{},",":{"docs":{},"q":{"docs":{},",":{"docs":{},"k":{"docs":{},",":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},"会":{"docs":{},"使":{"docs":{},"用":{"docs":{},"特":{"docs":{},"殊":{"docs":{},"数":{"docs":{},"值":{"docs":{},",":{"docs":{},"对":{"docs":{},"于":{"docs":{},"数":{"docs":{},"字":{"docs":{},"面":{"docs":{},"值":{"docs":{},"的":{"docs":{},"牌":{"docs":{},"使":{"docs":{},"用":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"用":{"docs":{},"来":{"docs":{},"描":{"docs":{},"述":{"docs":{},"扑":{"docs":{},"克":{"docs":{},"牌":{"docs":{},"从":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},"~":{"1":{"0":{"docs":{},",":{"docs":{},"j":{"docs":{},",":{"docs":{},"q":{"docs":{},",":{"docs":{},"k":{"docs":{},",":{"1":{"3":{"docs":{},"张":{"docs":{},"牌":{"docs":{},",":{"docs":{},"并":{"docs":{},"分":{"docs":{},"别":{"docs":{},"用":{"docs":{},"一":{"docs":{},"个":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"值":{"docs":{},"表":{"docs":{},"示":{"docs":{},"牌":{"docs":{},"的":{"docs":{},"面":{"docs":{},"值":{"docs":{},"。":{"docs":{},"(":{"docs":{},"这":{"docs":{},"个":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"值":{"docs":{},"不":{"docs":{},"适":{"docs":{},"用":{"docs":{},"于":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},",":{"docs":{},"j":{"docs":{},",":{"docs":{},"q":{"docs":{},",":{"docs":{},"k":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"s":{"docs":{},"i":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"o":{"docs":{},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"j":{"docs":{},"u":{"docs":{},"l":{"docs":{},"i":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}}}}}}},"o":{"docs":{},"m":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}},"n":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.047493403693931395}}}}}}}}}}}},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"o":{"docs":{},"u":{"docs":{},"c":{"docs":{},"h":{"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.023809523809523808},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}},"d":{"docs":{},"a":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{},"和":{"docs":{},"f":{"docs":{},"r":{"docs":{},"o":{"docs":{},"m":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}},"o":{"docs":{},"b":{"docs":{},"i":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}},".":{"docs":{},"g":{"docs":{},"e":{"docs":{},"n":{"docs":{},"e":{"docs":{},"r":{"docs":{},"a":{"docs":{},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"t":{"docs":{},"y":{"docs":{},"p":{"docs":{},"e":{"docs":{},".":{"docs":{},"e":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}}}}}}}}},"a":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"e":{"docs":{},"a":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"m":{"docs":{},"s":{"docs":{},"c":{"docs":{},"o":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483}}}}}}}},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}},".":{"docs":{},"a":{"docs":{},"r":{"docs":{},"e":{"docs":{},"a":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"m":{"docs":{},"i":{"docs":{},"n":{"docs":{},"o":{"docs":{},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":1.6685049019607843}}}}}}}}}}},"h":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"p":{"docs":{},"a":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"e":{"docs":{},"s":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}},"的":{"docs":{},"值":{"docs":{},"被":{"docs":{},"用":{"docs":{},"来":{"docs":{},"创":{"docs":{},"建":{"docs":{},"一":{"docs":{},"个":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}},"e":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"p":{"docs":{},"a":{"docs":{},"d":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}},"e":{"docs":{},"s":{"docs":{},".":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"g":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},"n":{"docs":{},"g":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483}},"e":{"docs":{},".":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"i":{"docs":{},"m":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}}},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"s":{"docs":{},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"e":{"docs":{},"(":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},".":{"docs":{},"s":{"docs":{},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"e":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{},"l":{"docs":{},"e":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"u":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}},"a":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.0316622691292876}}}}}},"u":{"docs":{},"e":{"docs":{},"s":{"docs":{},"d":{"docs":{},"a":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"l":{"docs":{},"i":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"p":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}},"w":{"docs":{},"o":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}},"t":{"docs":{},"h":{"docs":{},"o":{"docs":{},"u":{"docs":{},"s":{"docs":{},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}},"a":{"docs":{},"n":{"docs":{},"d":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}},"类":{"docs":{},"型":{"docs":{},"是":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"1":{"6":{"docs":{},",":{"docs":{},"然":{"docs":{},"而":{"docs":{},"常":{"docs":{},"量":{"docs":{},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"类":{"docs":{},"型":{"docs":{},"是":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"8":{"docs":{},"。":{"docs":{},"它":{"docs":{},"们":{"docs":{},"不":{"docs":{},"能":{"docs":{},"直":{"docs":{},"接":{"docs":{},"相":{"docs":{},"加":{"docs":{},",":{"docs":{},"因":{"docs":{},"为":{"docs":{},"它":{"docs":{},"们":{"docs":{},"类":{"docs":{},"型":{"docs":{},"不":{"docs":{},"同":{"docs":{},"。":{"docs":{},"所":{"docs":{},"以":{"docs":{},"要":{"docs":{},"调":{"docs":{},"用":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"1":{"6":{"docs":{},"(":{"docs":{},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},")":{"docs":{},"来":{"docs":{},"创":{"docs":{},"建":{"docs":{},"一":{"docs":{},"个":{"docs":{},"新":{"docs":{},"的":{"docs":{},"u":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"1":{"6":{"docs":{},"数":{"docs":{},"字":{"docs":{},"并":{"docs":{},"用":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"docs":{}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}},"y":{"docs":{},"p":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}},"s":{"docs":{},"中":{"docs":{},"知":{"docs":{},"道":{"docs":{},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},"有":{"docs":{},"默":{"docs":{},"认":{"docs":{},"的":{"docs":{},"成":{"docs":{},"员":{"docs":{},"构":{"docs":{},"造":{"docs":{},"函":{"docs":{},"数":{"docs":{},",":{"docs":{},"所":{"docs":{},"以":{"docs":{},"你":{"docs":{},"可":{"docs":{},"以":{"docs":{},"用":{"docs":{},"默":{"docs":{},"认":{"docs":{},"的":{"docs":{},"i":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{},"i":{"docs":{},"a":{"docs":{},"l":{"docs":{},"i":{"docs":{},"z":{"docs":{},"e":{"docs":{},"r":{"docs":{},"去":{"docs":{},"初":{"docs":{},"始":{"docs":{},"化":{"docs":{},"新":{"docs":{},"的":{"docs":{},"常":{"docs":{},"量":{"docs":{},"t":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"p":{"docs":{},"a":{"docs":{},"d":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"x":{"2":{"4":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"docs":{"chapter1/01_swift.html#gitbook_3724":{"ref":"chapter1/01_swift.html#gitbook_3724","tf":0.047619047619047616},"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.01060070671378092}},".":{"docs":{},"h":{"docs":{},"a":{"docs":{},"s":{"docs":{},"s":{"docs":{},"u":{"docs":{},"f":{"docs":{},"f":{"docs":{},"i":{"docs":{},"x":{"docs":{},"(":{"docs":{},"\"":{"docs":{},"p":{"docs":{},"e":{"docs":{},"p":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},".":{"docs":{},"a":{"docs":{},"d":{"docs":{},"j":{"docs":{},"u":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}},"s":{"docs":{},"i":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}},"l":{"docs":{},"u":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}},"j":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"c":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}},"(":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}},"二":{"docs":{},"十":{"docs":{},"一":{"docs":{},"点":{"docs":{},")":{"docs":{},",":{"docs":{},"用":{"docs":{},"来":{"docs":{},"模":{"docs":{},"拟":{"docs":{},"b":{"docs":{},"l":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"j":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"c":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{},"中":{"docs":{},"的":{"docs":{},"扑":{"docs":{},"克":{"docs":{},"牌":{"docs":{},"点":{"docs":{},"数":{"docs":{},"。":{"docs":{},"b":{"docs":{},"l":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"j":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"c":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},"包":{"docs":{},"含":{"2":{"docs":{},"个":{"docs":{},"嵌":{"docs":{},"套":{"docs":{},"定":{"docs":{},"义":{"docs":{},"的":{"docs":{},"枚":{"docs":{},"举":{"docs":{},"类":{"docs":{},"型":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},".":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{},".":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{},"s":{"docs":{},".":{"docs":{},"t":{"docs":{},"o":{"docs":{},"r":{"docs":{},"a":{"docs":{},"w":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"没":{"docs":{},"有":{"docs":{},"自":{"docs":{},"定":{"docs":{},"义":{"docs":{},"构":{"docs":{},"造":{"docs":{},"函":{"docs":{},"数":{"docs":{},"的":{"docs":{},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},",":{"docs":{},"在":{"docs":{},"m":{"docs":{},"e":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{},"w":{"docs":{},"i":{"docs":{},"s":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},"自":{"docs":{},"身":{"docs":{},"有":{"docs":{},"两":{"docs":{},"个":{"docs":{},"属":{"docs":{},"性":{"docs":{},"—":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{},"与":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{},",":{"docs":{},"也":{"docs":{},"同":{"docs":{},"样":{"docs":{},"定":{"docs":{},"义":{"docs":{},"了":{"docs":{},"一":{"docs":{},"个":{"docs":{},"计":{"docs":{},"算":{"docs":{},"属":{"docs":{},"性":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},",":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"属":{"docs":{},"性":{"docs":{},"用":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{},"和":{"docs":{},"s":{"docs":{},"u":{"docs":{},"i":{"docs":{},"t":{"docs":{},"的":{"docs":{},"中":{"docs":{},"内":{"docs":{},"容":{"docs":{},"来":{"docs":{},"构":{"docs":{},"建":{"docs":{},"对":{"docs":{},"这":{"docs":{},"张":{"docs":{},"扑":{"docs":{},"克":{"docs":{},"牌":{"docs":{},"名":{"docs":{},"字":{"docs":{},"和":{"docs":{},"数":{"docs":{},"值":{"docs":{},"的":{"docs":{},"描":{"docs":{},"述":{"docs":{},",":{"docs":{},"并":{"docs":{},"用":{"docs":{},"可":{"docs":{},"选":{"docs":{},"类":{"docs":{},"型":{"docs":{},"s":{"docs":{},"e":{"docs":{},"c":{"docs":{},"o":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"规":{"docs":{},"则":{"docs":{},"中":{"docs":{},",":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},"牌":{"docs":{},"可":{"docs":{},"以":{"docs":{},"表":{"docs":{},"示":{"1":{"docs":{},"或":{"docs":{},"者":{"1":{"1":{"docs":{},",":{"docs":{},"a":{"docs":{},"c":{"docs":{},"e":{"docs":{},"牌":{"docs":{},"的":{"docs":{},"这":{"docs":{},"一":{"docs":{},"特":{"docs":{},"征":{"docs":{},"用":{"docs":{},"一":{"docs":{},"个":{"docs":{},"嵌":{"docs":{},"套":{"docs":{},"在":{"docs":{},"枚":{"docs":{},"举":{"docs":{},"型":{"docs":{},"r":{"docs":{},"a":{"docs":{},"n":{"docs":{},"k":{"docs":{},"的":{"docs":{},"结":{"docs":{},"构":{"docs":{},"体":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}},"o":{"docs":{},"c":{"docs":{},"k":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.08333333333333333}}}}}},"o":{"docs":{},"o":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.026385224274406333}},"e":{"docs":{},"a":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}},"t":{"docs":{},"t":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"n":{"docs":{},"j":{"docs":{},"o":{"docs":{},"u":{"docs":{},"r":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.014134275618374558}}}}}}}},"i":{"docs":{},"n":{"docs":{},"a":{"docs":{},"r":{"docs":{},"y":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"w":{"docs":{},"a":{"docs":{},"r":{"docs":{},"d":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.010554089709762533}},"s":{"docs":{},"(":{"docs":{},"s":{"1":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}},"docs":{}}}}}}}}}},"r":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}}}}},"d":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}},"a":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}}},"n":{"docs":{},"i":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"a":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}}}}}}},"e":{"docs":{},"f":{"docs":{},"a":{"docs":{},"u":{"docs":{},"l":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}},"i":{"docs":{},"n":{"docs":{},"i":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"c":{"docs":{},"i":{"docs":{},"m":{"docs":{},"a":{"docs":{},"l":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}}}},"i":{"docs":{},"a":{"docs":{},"m":{"docs":{},"o":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}}}},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"r":{"docs":{},"y":{"docs":{},"<":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}},"g":{"docs":{},"i":{"docs":{},"t":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.013192612137203167}},"e":{"docs":{},"s":{"docs":{},"[":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}}}}}},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.012925969447708578},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0176678445229682}},"e":{"docs":{},"类":{"docs":{},"型":{"docs":{},"写":{"docs":{},"一":{"docs":{},"个":{"docs":{},"扩":{"docs":{},"展":{"docs":{},",":{"docs":{},"添":{"docs":{},"加":{"docs":{},"a":{"docs":{},"b":{"docs":{},"s":{"docs":{},"o":{"docs":{},"l":{"docs":{},"u":{"docs":{},"t":{"docs":{},"e":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}},"(":{"docs":{},"t":{"docs":{},"h":{"docs":{},"r":{"docs":{},"e":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}},"m":{"docs":{},"u":{"docs":{},"l":{"docs":{},"t":{"docs":{},"i":{"docs":{},"p":{"docs":{},"l":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}}}}}}}},"或":{"docs":{},"者":{"docs":{},"f":{"docs":{},"l":{"docs":{},"o":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}},"精":{"docs":{},"确":{"docs":{},"度":{"docs":{},"很":{"docs":{},"高":{"docs":{},",":{"docs":{},"至":{"docs":{},"少":{"docs":{},"有":{"1":{"5":{"docs":{},"位":{"docs":{},"数":{"docs":{},"字":{"docs":{},",":{"docs":{},"而":{"docs":{},"f":{"docs":{},"l":{"docs":{},"o":{"docs":{},"a":{"docs":{},"t":{"docs":{},"最":{"docs":{},"少":{"docs":{},"只":{"docs":{},"有":{"6":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}},"而":{"docs":{},"不":{"docs":{},"是":{"docs":{},"f":{"docs":{},"l":{"docs":{},"o":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}},"表":{"docs":{},"示":{"6":{"4":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}},"docs":{}}}}}}},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}},"c":{"docs":{},"o":{"docs":{},"w":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},".":{"docs":{},"u":{"docs":{},"n":{"docs":{},"i":{"docs":{},"c":{"docs":{},"o":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}}}}}}},"t":{"docs":{},"f":{"1":{"6":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"8":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}}}}}}}}}}}},"l":{"docs":{},"l":{"docs":{},"a":{"docs":{},"r":{"docs":{},"s":{"docs":{},"i":{"docs":{},"g":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"、":{"docs":{},"b":{"docs":{},"l":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{},"h":{"docs":{},"e":{"docs":{},"a":{"docs":{},"r":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"d":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}},"e":{"docs":{},"i":{"docs":{},"g":{"docs":{},"h":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}},"n":{"docs":{},"s":{"docs":{},"t":{"docs":{},"e":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"y":{"docs":{},"a":{"docs":{},"r":{"docs":{},"r":{"docs":{},"a":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"d":{"docs":{},"i":{"docs":{},"c":{"docs":{},"t":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},".":{"docs":{},"i":{"docs":{},"s":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}}}}},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.005875440658049354},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}},"e":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}},"d":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}},"q":{"docs":{},"u":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"&":{"docs":{},"g":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},";":{"docs":{},"和":{"docs":{},"&":{"docs":{},"l":{"docs":{},"t":{"docs":{},";":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}},"i":{"docs":{},"l":{"docs":{},"a":{"docs":{},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"a":{"docs":{},"l":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"a":{"docs":{},"n":{"docs":{},"g":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}},"e":{"docs":{},"(":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"r":{"docs":{},"r":{"docs":{},"o":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"(":{"docs":{},"e":{"docs":{},"r":{"docs":{},"r":{"docs":{},"o":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"y":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}},"x":{"docs":{},"a":{"docs":{},"m":{"docs":{},"p":{"docs":{},"l":{"docs":{},"e":{"docs":{},"p":{"docs":{},"r":{"docs":{},"o":{"docs":{},"t":{"docs":{},"o":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.005875440658049354}}}}}}}}}}}}}}},"p":{"docs":{},"l":{"docs":{},"i":{"docs":{},"c":{"docs":{},"i":{"docs":{},"t":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"d":{"docs":{},"o":{"docs":{},"u":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}},",":{"docs":{},"那":{"docs":{},"这":{"docs":{},"个":{"docs":{},"数":{"docs":{},"相":{"docs":{},"当":{"docs":{},"于":{"docs":{},"基":{"docs":{},"数":{"docs":{},"和":{"1":{"0":{"docs":{},"^":{"docs":{},"e":{"docs":{},"x":{"docs":{},"p":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}},"docs":{}},"2":{"docs":{},"^":{"docs":{},"e":{"docs":{},"x":{"docs":{},"p":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}},"docs":{}}}}}}}}}}}}},"t":{"docs":{},"e":{"docs":{},"n":{"docs":{},"s":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}},"w":{"docs":{},"a":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}}},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}},"e":{"docs":{},"t":{"docs":{},"g":{"docs":{},"a":{"docs":{},"s":{"docs":{},"p":{"docs":{},"r":{"docs":{},"i":{"docs":{},"c":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"s":{"docs":{},"和":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}},"-":{"docs":{},"c":{"docs":{},"l":{"docs":{},"a":{"docs":{},"u":{"docs":{},"s":{"docs":{"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.16666666666666666}}}}}}},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{},"t":{"docs":{"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.125}},"e":{"docs":{},"r":{"docs":{},"-":{"docs":{},"b":{"docs":{},"l":{"docs":{},"o":{"docs":{},"c":{"docs":{},"k":{"docs":{"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.125}}}}}}}},"方":{"docs":{},"法":{"docs":{},"​":{"docs":{},"​":{"docs":{},"块":{"docs":{},"可":{"docs":{},"以":{"docs":{},"由":{"docs":{},"一":{"docs":{},"个":{"docs":{},"g":{"docs":{},"e":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{},"子":{"docs":{},"句":{"docs":{},"后":{"docs":{},"跟":{"docs":{},"一":{"docs":{},"个":{"docs":{},"可":{"docs":{},"选":{"docs":{},"的":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{},"子":{"docs":{},"句":{"docs":{},"构":{"docs":{},"成":{"docs":{},",":{"docs":{},"用":{"docs":{},"大":{"docs":{},"括":{"docs":{},"号":{"docs":{},"括":{"docs":{},"起":{"docs":{},"来":{"docs":{},",":{"docs":{},"或":{"docs":{},"者":{"docs":{},"由":{"docs":{},"一":{"docs":{},"个":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"r":{"docs":{},"子":{"docs":{},"句":{"docs":{},"后":{"docs":{},"跟":{"docs":{},"一":{"docs":{},"个":{"docs":{},"g":{"docs":{},"e":{"docs":{},"t":{"docs":{},"t":{"docs":{"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.041666666666666664}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"o":{"docs":{},"o":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414},"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.047619047619047616}},"(":{"docs":{},"\"":{"docs":{},"b":{"docs":{},"o":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"被":{"docs":{},"调":{"docs":{},"用":{"docs":{},",":{"docs":{},"该":{"docs":{},"函":{"docs":{},"数":{"docs":{},"结":{"docs":{},"束":{"docs":{},"它":{"docs":{},"的":{"docs":{},"执":{"docs":{},"行":{"docs":{},"并":{"docs":{},"返":{"docs":{},"回":{"docs":{},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}},"a":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}},"a":{"docs":{},"m":{"docs":{},"m":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter3/01_About_the_Language_Reference.html#gitbook_3751":{"ref":"chapter3/01_About_the_Language_Reference.html#gitbook_3751","tf":0.08333333333333333}}}}}}}},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.021108179419525065}}}},"j":{"docs":{},"a":{"docs":{},"c":{"docs":{},"k":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}}}}},"o":{"docs":{},"h":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}},"u":{"docs":{},"s":{"docs":{},"t":{"docs":{},"o":{"docs":{},"v":{"docs":{},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"m":{"docs":{},"i":{"docs":{},"l":{"docs":{},"l":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}}}}}}}}},"k":{"docs":{},"a":{"docs":{},"y":{"docs":{},"l":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"e":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}},"i":{"docs":{},"n":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}}}}},"n":{"docs":{},"o":{"docs":{},"w":{"docs":{},"l":{"docs":{},"e":{"docs":{},"d":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}}},"o":{"docs":{},"a":{"docs":{},"l":{"docs":{},"a":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.005875440658049354}},"a":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}},"k":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"i":{"docs":{},"n":{"docs":{},"c":{"docs":{},"r":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"o":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.018469656992084433}},"(":{"docs":{},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"c":{"docs":{},"r":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.0079155672823219}}}}}}}}}}}}}}}}}}}}}}},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"l":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"x":{"docs":{},"i":{"docs":{},"m":{"docs":{},"u":{"docs":{},"m":{"docs":{},"n":{"docs":{},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{},"f":{"docs":{},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{},"i":{"docs":{},"n":{"docs":{},"a":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},"s":{"docs":{},"或":{"docs":{},"者":{"docs":{},"w":{"docs":{},"e":{"docs":{},"l":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{},"e":{"docs":{},"m":{"docs":{},"e":{"docs":{},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{},"e":{"docs":{},")":{"docs":{},"和":{"docs":{},"一":{"docs":{},"个":{"docs":{},"指":{"docs":{},"定":{"docs":{},"类":{"docs":{},"型":{"docs":{},"的":{"docs":{},"值":{"docs":{},"(":{"docs":{},"比":{"docs":{},"如":{"docs":{},"数":{"docs":{},"字":{"1":{"0":{"docs":{},"或":{"docs":{},"者":{"docs":{},"字":{"docs":{},"符":{"docs":{},"串":{"docs":{},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"的":{"docs":{},"新":{"docs":{},"常":{"docs":{},"量":{"docs":{},",":{"docs":{},"并":{"docs":{},"给":{"docs":{},"它":{"docs":{},"一":{"docs":{},"个":{"docs":{},"值":{"1":{"0":{"docs":{},"。":{"docs":{},"然":{"docs":{},"后":{"docs":{},",":{"docs":{},"声":{"docs":{},"明":{"docs":{},"一":{"docs":{},"个":{"docs":{},"名":{"docs":{},"字":{"docs":{},"是":{"docs":{},"c":{"docs":{},"u":{"docs":{},"r":{"docs":{},"r":{"docs":{},"e":{"docs":{},"n":{"docs":{},"t":{"docs":{},"l":{"docs":{},"o":{"docs":{},"g":{"docs":{},"i":{"docs":{},"n":{"docs":{},"a":{"docs":{},"t":{"docs":{},"t":{"docs":{},"e":{"docs":{},"m":{"docs":{},"p":{"docs":{},"t":{"docs":{},"的":{"docs":{},"变":{"docs":{},"量":{"docs":{},"并":{"docs":{},"将":{"docs":{},"它":{"docs":{},"的":{"docs":{},"值":{"docs":{},"初":{"docs":{},"始":{"docs":{},"化":{"docs":{},"为":{"0":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"docs":{}},"docs":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}}}}}}},"n":{"docs":{},"s":{"docs":{},"i":{"docs":{},"o":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}}}}}}},"p":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.018469656992084433}}}},"e":{"docs":{},"c":{"docs":{},"h":{"docs":{},"a":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}},"a":{"docs":{},"n":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"o":{"docs":{},"f":{"docs":{},"l":{"docs":{},"i":{"docs":{},"f":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}}}}}}}}}}}},"s":{"docs":{},"s":{"docs":{},"a":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}},"u":{"docs":{},"t":{"docs":{},"a":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}}}}},"l":{"docs":{},"t":{"docs":{},"i":{"docs":{},"l":{"docs":{},"i":{"docs":{},"n":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.01060070671378092}}}}},"p":{"docs":{},"l":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},"i":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883}}}}}}}}},"y":{"docs":{},"c":{"docs":{},"o":{"docs":{},"n":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}},"v":{"docs":{},"a":{"docs":{},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"是":{"docs":{},"一":{"docs":{},"个":{"docs":{},"整":{"docs":{},"数":{"docs":{},"(":{"docs":{},"i":{"docs":{},"n":{"docs":{},"t":{"docs":{},"e":{"docs":{},"g":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}},"i":{"docs":{},"n":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279}}}}}},"和":{"docs":{},"m":{"docs":{},"a":{"docs":{},"x":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}}}}},"o":{"docs":{},"r":{"docs":{},"e":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.005875440658049354},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.022326674500587545},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},"d":{"docs":{},"s":{"docs":{},"h":{"docs":{},"a":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123}},"e":{"docs":{},"的":{"docs":{},"另":{"docs":{},"一":{"docs":{},"个":{"docs":{},"子":{"docs":{},"类":{"docs":{},"c":{"docs":{},"i":{"docs":{},"r":{"docs":{},"c":{"docs":{},"l":{"docs":{},"e":{"docs":{},",":{"docs":{},"构":{"docs":{},"造":{"docs":{},"器":{"docs":{},"接":{"docs":{},"收":{"docs":{},"两":{"docs":{},"个":{"docs":{},"参":{"docs":{},"数":{"docs":{},",":{"docs":{},"一":{"docs":{},"个":{"docs":{},"是":{"docs":{},"半":{"docs":{},"径":{"docs":{},"一":{"docs":{},"个":{"docs":{},"是":{"docs":{},"名":{"docs":{},"称":{"docs":{},",":{"docs":{},"实":{"docs":{},"现":{"docs":{},"a":{"docs":{},"r":{"docs":{},"e":{"docs":{},"a":{"docs":{},"和":{"docs":{},"d":{"docs":{},"e":{"docs":{},"s":{"docs":{},"c":{"docs":{},"r":{"docs":{},"i":{"docs":{},"b":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"e":{"docs":{},"w":{"docs":{},"v":{"docs":{},"a":{"docs":{},"l":{"docs":{},"u":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}},"e":{"docs":{},".":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{},"e":{"docs":{},"l":{"docs":{},"e":{"docs":{},"n":{"docs":{},"g":{"docs":{},"t":{"docs":{},"h":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}}}}}}}},"。":{"docs":{},"你":{"docs":{},"可":{"docs":{},"以":{"docs":{},"在":{"docs":{},"s":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}},"s":{"docs":{},"t":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}}}},"i":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}},",":{"docs":{},"?":{"docs":{},"后":{"docs":{},"面":{"docs":{},"的":{"docs":{},"东":{"docs":{},"西":{"docs":{},"都":{"docs":{},"会":{"docs":{},"被":{"docs":{},"忽":{"docs":{},"略":{"docs":{},",":{"docs":{},"并":{"docs":{},"且":{"docs":{},"整":{"docs":{},"个":{"docs":{},"表":{"docs":{},"达":{"docs":{},"式":{"docs":{},"返":{"docs":{},"回":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}},"条":{"docs":{},"件":{"docs":{},"会":{"docs":{},"判":{"docs":{},"断":{"docs":{},"为":{"docs":{},"f":{"docs":{},"a":{"docs":{},"l":{"docs":{},"s":{"docs":{},"e":{"docs":{},",":{"docs":{},"大":{"docs":{},"括":{"docs":{},"号":{"docs":{},"中":{"docs":{},"的":{"docs":{},"代":{"docs":{},"码":{"docs":{},"会":{"docs":{},"被":{"docs":{},"跳":{"docs":{},"过":{"docs":{},"。":{"docs":{},"如":{"docs":{},"果":{"docs":{},"不":{"docs":{},"是":{"docs":{},"n":{"docs":{},"i":{"docs":{},"l":{"docs":{},",":{"docs":{},"会":{"docs":{},"将":{"docs":{},"值":{"docs":{},"赋":{"docs":{},"给":{"docs":{},"l":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"n":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.008130081300813009}}}}},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}},"w":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}}},"r":{"docs":{},"m":{"docs":{},"a":{"docs":{},"l":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},".":{"docs":{},"l":{"docs":{},"o":{"docs":{},"w":{"docs":{},"e":{"docs":{},"r":{"docs":{},"c":{"docs":{},"a":{"docs":{},"s":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}},"u":{"docs":{},"p":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"c":{"docs":{},"a":{"docs":{},"s":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}}}}}}},"t":{"docs":{},"h":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"e":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}},"u":{"docs":{},"m":{"docs":{},"b":{"docs":{},"e":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.01645123384253819},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.0316622691292876}},"o":{"docs":{},"f":{"docs":{},"s":{"docs":{},"i":{"docs":{},"d":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.007050528789659225}}}}},"t":{"docs":{},"i":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}}}}}}},"s":{"docs":{},".":{"docs":{},"m":{"docs":{},"a":{"docs":{},"p":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.005277044854881266}}}}}}}}}}}},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"s":{"docs":{},"m":{"docs":{},"u":{"docs":{},"t":{"docs":{},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.01838235294117647}}}}}}}}}},"q":{"docs":{},"u":{"docs":{},"e":{"docs":{},"e":{"docs":{},"n":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.016260162601626018}}}}},"o":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}},";":{"docs":{},"a":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},";":{"docs":{},")":{"docs":{},",":{"docs":{},"u":{"docs":{},"+":{"1":{"docs":{},"f":{"4":{"2":{"5":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}},"docs":{}},"docs":{}},"docs":{}}},"docs":{}}}}}}}}}}},"l":{"docs":{},"b":{"docs":{},"a":{"docs":{},"t":{"docs":{},"r":{"docs":{},"o":{"docs":{},"s":{"docs":{},"s":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}}}}}}},"e":{"docs":{},"x":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}},"h":{"docs":{},"e":{"docs":{},"l":{"docs":{},"l":{"docs":{},"o":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}},"":{"docs":{},"":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"g":{"docs":{},"r":{"docs":{},"e":{"docs":{},"e":{"docs":{},"t":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"f":{"docs":{},"o":{"docs":{},"r":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{},";":{"docs":{},",":{"docs":{},"之":{"docs":{},"所":{"docs":{},"以":{"docs":{},"叫":{"docs":{},"这":{"docs":{},"个":{"docs":{},"名":{"docs":{},"字":{"docs":{},"是":{"docs":{},"因":{"docs":{},"为":{"docs":{},"这":{"docs":{},"个":{"docs":{},"函":{"docs":{},"数":{"docs":{},"用":{"docs":{},"一":{"docs":{},"个":{"docs":{},"人":{"docs":{},"的":{"docs":{},"名":{"docs":{},"字":{"docs":{},"当":{"docs":{},"做":{"docs":{},"输":{"docs":{},"入":{"docs":{},",":{"docs":{},"并":{"docs":{},"返":{"docs":{},"回":{"docs":{},"给":{"docs":{},"这":{"docs":{},"个":{"docs":{},"人":{"docs":{},"的":{"docs":{},"问":{"docs":{},"候":{"docs":{},"语":{"docs":{},"。":{"docs":{},"为":{"docs":{},"了":{"docs":{},"完":{"docs":{},"成":{"docs":{},"这":{"docs":{},"个":{"docs":{},"任":{"docs":{},"务":{"docs":{},",":{"docs":{},"你":{"docs":{},"定":{"docs":{},"义":{"docs":{},"一":{"docs":{},"个":{"docs":{},"输":{"docs":{},"入":{"docs":{},"参":{"docs":{},"数":{"docs":{},"-":{"docs":{},"一":{"docs":{},"个":{"docs":{},"叫":{"docs":{},"做":{"docs":{},"p":{"docs":{},"e":{"docs":{},"r":{"docs":{},"s":{"docs":{},"o":{"docs":{},"n":{"docs":{},"n":{"docs":{},"a":{"docs":{},"m":{"docs":{},"e":{"docs":{},"的":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{},"i":{"docs":{},"n":{"docs":{},"g":{"docs":{},"值":{"docs":{},",":{"docs":{},"和":{"docs":{},"一":{"docs":{},"个":{"docs":{},"包":{"docs":{},"含":{"docs":{},"给":{"docs":{},"这":{"docs":{},"个":{"docs":{},"人":{"docs":{},"问":{"docs":{},"候":{"docs":{},"语":{"docs":{},"的":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/06_Functions.html#gitbook_3732":{"ref":"chapter2/06_Functions.html#gitbook_3732","tf":0.023809523809523808}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}},"b":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}},"a":{"docs":{},"r":{"docs":{},"r":{"docs":{},"y":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}},"f":{"docs":{},"i":{"docs":{},"v":{"docs":{},"e":{"docs":{},"e":{"docs":{},"i":{"docs":{},"g":{"docs":{},"h":{"docs":{},"t":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"z":{"docs":{},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}}}}}}}},"o":{"docs":{},"n":{"docs":{},"e":{"docs":{},"s":{"docs":{},"i":{"docs":{},"x":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}}},"t":{"docs":{},"i":{"docs":{},"m":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}},"o":{"docs":{},"m":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}},"大":{"docs":{},"于":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}},"按":{"docs":{},"照":{"docs":{},"字":{"docs":{},"母":{"docs":{},"顺":{"docs":{},"序":{"docs":{},"后":{"docs":{},"出":{"docs":{},"现":{"docs":{},"&":{"docs":{},"q":{"docs":{},"u":{"docs":{},"o":{"docs":{},"t":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}}}}}}}}}}}},"a":{"docs":{},"t":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}},"v":{"docs":{},"a":{"docs":{},"r":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.04935370152761457},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.014134275618374558},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.011029411764705883},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.010554089709762533},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.024390243902439025}},"i":{"docs":{},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}},"e":{"docs":{},"s":{"docs":{},"t":{"docs":{},"r":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.0055147058823529415}}}}}}}}}}},"l":{"docs":{},"u":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.007067137809187279},"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294},"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633},"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.04878048780487805}},"e":{"docs":{},"s":{"docs":{},"(":{"docs":{},"f":{"docs":{},"i":{"docs":{},"r":{"docs":{},"s":{"docs":{},"t":{"docs":{"chapter2/19_Nested_Types.html#gitbook_3744":{"ref":"chapter2/19_Nested_Types.html#gitbook_3744","tf":0.024390243902439025}}}}}}}}}}}}},"e":{"docs":{},"g":{"docs":{},"e":{"docs":{},"t":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0023501762632197414}},"a":{"docs":{},"b":{"docs":{},"l":{"docs":{},"e":{"docs":{},"c":{"docs":{},"o":{"docs":{},"m":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.004700352526439483}}}}}}}}}}}},"r":{"docs":{},"i":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0011750881316098707}}},"o":{"docs":{},"n":{"docs":{},"a":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.003676470588235294}}}}}}}},"y":{"docs":{"chapter1/02_a_swift_tour.html#gitbook_3725":{"ref":"chapter1/02_a_swift_tour.html#gitbook_3725","tf":0.0035252643948296123},"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},"e":{"docs":{},"n":{"docs":{},"s":{"docs":{},"i":{"docs":{},"g":{"docs":{},"n":{"docs":{"chapter2/03_Strings_and_Characters.html#gitbook_3729":{"ref":"chapter2/03_Strings_and_Characters.html#gitbook_3729","tf":0.001838235294117647}}}}}}}}},"z":{"docs":{"chapter2/01_The_Basics.html#gitbook_3728":{"ref":"chapter2/01_The_Basics.html#gitbook_3728","tf":0.0035335689045936395}},"e":{"docs":{},"r":{"docs":{},"o":{"docs":{"chapter2/07_Closures.html#gitbook_3733":{"ref":"chapter2/07_Closures.html#gitbook_3733","tf":0.002638522427440633}}}}}}},"length":996},"corpusTokens":["0","0,$1,$2","0..3","0..time","0.0","0.0125","0.14159","000123.456","0b","0b10001","0o","0o21","0x","0x11","0xc.3p0","0xfp-2","0xfp2","0x)。小数点两边必须有至少一个十进制数字(或者是十六进制的数字)。浮点原始值还有一个可选的指数,在十进制浮点数中通过大写或者小写的e来指定,在十六进制浮点数中通过大写或者小写的p","0,这时闭包会将字符串输出,而map","1","1.21875e1","1.25","1.25e-2","1.25e2","10","100","103","10^-2","10^2","10中,如果number为16,则返回6,58返回8,510返回0","11","111","12","12.1875","125.0","128054","128054,是一个十六进制1f436","13","144","15","159","16","16,58,510","16变成了1,58变成了5,510变成了51","17","182","19","1_000_000","1_000_000.000_000_1","2","2.5","20","2014","21","240","25","255","2^-2","2^2","2_000","3","3.0","3.1","3.14159","3.14159,0.1和-273.15","3.59","3.69","3.75","3.79","30","32位平台上,int和int32","32位平台上,uint和uint32","33","39","3可以直接和原始值0.14159","3没有显式声明类型,而表达式中出现了一个浮点原始值,所以表达式会被推测为doubl","4","4.75会变成4,-3.9会变成3","40","42","42和-23","42和3.14159","42并且没有标明类型,swift","43","5","5.2","50","510","55357","56374","58","597","6","60.0","64位平台上,int和int64","64位平台上,uint和uint64","68","69105","7","7.5","7.simpledescript","70","70.0","75","8","87","8:09","8、16、32和64","8位无符号整数类型是uint8,32位有符号整数类型是int32","9","9.9","94","a.adjust","a.simpledescript","ac","ace.toraw","acerawvalu","act","act1scenecount","add","addon","addone(numb","adescript","adjust","again","alex","alik","alsoincrementbyten","amount","anna","anoth","anotheremptystr","anotherpi","anotherproperti","ant","anycommonel","anycommonelements([1","api","appl","applese","applesummari","arc","arc为了能帮助你管理内存,需要更多的关于你的代码之间关系的信息。本章描述了这些情况,并且为你示范怎样启用arc","arc会分配一大块内存用来储存实例的信息。内存中会包含实例的类型信息,以及这个实例所有相关属性的值。此外,当实例不再被使用时,arc","arc会跟踪和计算每一个类实例正在被多少属性,常量和变量所引用。哪怕实例的引用数为一,arc","area","argument","arrai","array和dictionari","ascii","automat","b","b.adjust","b.simpledescript","backward","backwards(s1","barri","bdescript","binaryinteg","blackheart","blackjackcard","blackjackcard(rank","blackjackcard(二十一点),用来模拟blackjackcard中的扑克牌点数。blackjackcard结构体包含2个嵌套定义的枚举类型suit","blackjackcard.suit.hearts.toraw","blackjackcard是一个没有自定义构造函数的结构体,在memberwis","blackjackcard结构体自身有两个属性—rank与suit,也同样定义了一个计算属性description,description属性用rank和suit的中内容来构建对这张扑克牌名字和数值的描述,并用可选类型second","blackjackcard规则中,ace牌可以表示1或者11,ace牌的这一特征用一个嵌套在枚举型rank的结构体valu","block","blue","bonjour","bool","boolean","bottl","brian","c","cannotbeneg","captain","captur","capulet'","caputur","card","card(rank","card添加一个方法,创建一副完整的扑克牌并把每张牌的rank和suit","carriag","case","cat","catfish","celeri","cell","chang","charact","character1","character2","characterpluscharact","characterplusstr","characters)字符串字面量初始化空字符串字符串可变性字符串是值类型使用字符(characters)计算字符数量连接字符串和字符字符串插值比较字符串字符串相等前缀/后缀相等大写和小写字符串unicodeunicod","chees","chri","class","closur","club","cocoa","cocoa的基础上构建框架栈并将其标准化。objective-c","cocoa里的nslog函数一样,println","codeunit","comment","compile-tim","condit","condition(item","consid","constant","constantstr","convertedrank","convertedrank.simpledescript","count","countel","countelements(unusualmenageri","counter","counter.incrementby(2","cucumb","current","currentloginattempt","cycl","c的兼容性的限制。swift","d","dai","daniella","decimaldoubl","decimalinteg","default","deinit","descript","diamond","dictionary(item","result","result(str","result(sunris","return","returnfifteen","returntyp","return参数名称缩写运算符函数trail","revers","rh","rhsitem","romeoandjuliet","room","runingtot","runningtot","s1","s2","s2),backward","samequot","sandwich","sayhello(personnam","sayhelloagain(personnam","sayhello。上面的例子展示的是用"anna"和"brian"","sayhello函数时,在圆括号中传给它一个string类型的实参。因为这个函数返回一个string类型的值,sayhello可以被包含在println","sayhello的函数体中,先定义了一个新的名为greeting的string常量,同时赋值了给personname的一个简单问候消息。然后用return关键字把这个问候返回出去。一旦return","scalar","scene","scene.hasprefix(\"act","score","second","secondforloop","see","self","self.nam","self.sidelength","self.toraw","self被用来区别实例变量。当你创建实例的时候,像传入函数参数一样给类传入构造器的参数。每个属性都需要赋值——无论是通过声明(就像numberofsides)还是通过构造器(就像nam","sequenc","serverrespons","serverresponse.error(\"out","serverresponse.result(\"6:00","serverresponse和switch","set","setter","setter-claus","setter-clause­opt","seven","shape","shape.numberofsid","shape.simpledescript","shapedescript","shape类缺少了一些重要的东西:一个构造函数来初始化类实例。使用init","shoppinglist","shoppinglist[1","shouti","side","sidelength","simpl","simpleclass","simpledescript","simplestructur","simplestructure时候mutating关键字用来标记一个会修改结构体的方法。simpleclass","six","size","snail","some(100","some(t","somefunctionthattakesaclosur","somefunctionthattakesaclosure(closur","somestr","sometype(ofinitialvalu","sort","sort([1","sort(nam","soup","spade","sparklingheart","spici","squar","square(sidelength","square.sidelength","standard","start","statement","street","string","string(self.toraw","string(width","string1","string2","stringpluscharact","stringplusstr","string”的意思是“可以存储任意str","string,你绝对不可能不小心传进去一个int","string,名字为welcomemessag","string,类型安全会阻止你不小心传入一个int","strong","struct","structur","success","suit","suit.heart","suit.simpledescript","suit.toraw","suit添加一个color方法,对spades和clubs返回“black”,对hearts和diamonds返回“r","suit用来描述扑克牌的四种花色,并分别用一个charact","sum","sumof","sumof(42","sumof(numb","sunris","sunset","super.init(nam","swift","swift使用自动引用计数(arc)这一机制来跟踪和管理你的应用程序的内存。通常情况下,swift的内存管理机制会一直起着作用,你无须自己来考虑内存的管理。arc","swift可以推断出这个常量或者变量的类型,详情参见类型安全和类型推断(待添加链接)。在上面的例子中,没有给welcomemessag","swift用字符串插值(str","swift统一的函数语法足够灵活,可以用来表示任何函数,包括从最简单的没有参数名字的c风格函数,到复杂的带局部和外部参数名的objective-c","swift语言相对小点,这是由于在swift代码中几乎无处不在的许多常见的的类型,函数以及运算符都由swift标准库来定义。虽然这些类型,函数和运算符不是swift","switch","switch中匹配到的子句之后,程序会退出switch语句,并不会继续向下运行,所以不需要在每个子句结尾写break","syntax","t","t.generatortype.el","tast","tea","teamscor","ten","terminolog","test","test.area","test.simpledescript","theaceofspad","theaceofspades.descript","three","threedescript","threeofspad","threeofspades.simpledescript","threeofspadesdescript","three的值被用来创建一个doubl","time","todai","toobig","toraw和fromraw","touch","trail","triagl","triangl","triangle.perimet","triangle.sidelength","triangleandsquar","triangleandsquare(s","triangleandsquare.squar","triangleandsquare.square.sidelength","triangleandsquare.triangle.sidelength","true","tuesdai","tulip","tupl","two","twothousand","twothousandandon","twothousand类型是uint16,然而常量one类型是uint8。它们不能直接相加,因为它们类型不同。所以要调用uint16(one)来创建一个新的uint16数字并用on","type","types中知道结构体有默认的成员构造函数,所以你可以用默认的initializer去初始化新的常量theaceofspad","u","u+0024","u+0061","u+1f436","u+1f496","u+2665","u+d83d","u+dc36","u.generatortype.el","u0001f496","u2665","uin8","uint","uint16","uint16(on","uint16有一个构造器,可以接受一个uint8类型的值,所以这个构造器可以用现有的uint8来创建一个新的uint16。注意,你并不能传入任意类型的值,只能传入uint16","uint16,可以进行相加。目标常量twothousandandone的类型被推测为uint16,因为它是两个uint16","uint32","uint8","uint8.max","uint8.min","uint,除非你真的需要存储一个和当前平台原生字长相同的无符号整数。除了这种情况,最好使用int,即使你要存储的值已知是非负的。统一使用int","uncom","undefinedundefin","unicod","unicodescalar","unicodescalarview","unnnn","unnnnnnnn","unusualmenageri","uppercasestr","us","utf-16","utf-8","utf-8utf-16unicod","utf16","utf16count","utf16view","utf8","utf8view","valu","values(first","var","variabl","variablestr","veget","vegetablecom","veri","verona","water","watercress","we'r","welcom","welcomemessag","welcomemessage变量添加了类型标注,表示这个变量可以存储str","where,只在冒号后面写接口或者类名。<t","whisper","width","widthlabel","willset","willset和didset","wiseword","work","world","world"","written","wwdc","x","x.hassuffix(\"pepp","x24","xcode","xnn","y","yensign","z","zero"],"pipeline":["trimmer","stopWordFilter","stemmer"]} \ No newline at end of file diff --git a/source/chapter1/02_a_swift_tour.md b/source/chapter1/02_a_swift_tour.md index 476c013a..5e4a9a25 100644 --- a/source/chapter1/02_a_swift_tour.md +++ b/source/chapter1/02_a_swift_tour.md @@ -200,7 +200,7 @@ func returnFifteen() -> Int { var y = 10 - func add() { + func add() { y += 5 } add() @@ -247,7 +247,7 @@ 有很多种创建闭包的方法。如果一个闭包的类型已知,比如作为一个回调函数,你可以忽略参数的类型和返回值。单个语句闭包会把它语句的值当做结果返回。 -你可以获取参数的数量——这个方法在非常短的闭包中很有用。一个被作为最后一个参数传入函数的时候可以直接出现在括号后面。 +你可以通过参数位置而不是参数名字来引用参数——这个方法在非常短的闭包中非常有用。当一个闭包作为最后一个参数传给一个函数的时候,它可以直接跟在括号后面。 sort([1, 5, 3, 12, 2]) { $0 > $1 } @@ -345,7 +345,7 @@ triangle.perimeter = 9.9 triangle.sideLength -在`perimeter`的 setter 中,新值的名字是`newValue`。你可以在`set`之后显示的设置一个名字。 +在`perimeter`的 setter 中,新值的名字是`newValue`。你可以在`set`之后显式的设置一个名字。 注意`EquilateralTriangle`类的构造器执行了三步: diff --git a/source/chapter2/01_The_Basics.md b/source/chapter2/01_The_Basics.md index 781e4a18..3eff63f3 100644 --- a/source/chapter2/01_The_Basics.md +++ b/source/chapter2/01_The_Basics.md @@ -80,14 +80,14 @@ Swift 是一个类型安全的语言,可选就是一个很好的例子。Swift let languageName = "Swift" languageName = "Swift++" // this is a compile-time error - languageName cannot be changed - + ### 输出常量和变量 你可以用`println`函数来输出当前常量或变量的值: println(friendlyWelcome) // prints "Bonjour!" - + `println`是一个用来输出的全局函数,输出的内容会在最后带换行。如果你用Xcode,`println`将会输出内容到“console”面板上。(另一种函数叫`print`,唯一区别是在输出内容最后不会加入换行。) `println`函数输出传入的`String`值: @@ -101,7 +101,7 @@ Swift用字符串插值(string interpolation)的方式把常量名或者变 println("The current value of friendlyWelcome is \(friendlyWelcome)") // prints "The current value of friendlyWelcome is Bonjour! - + > 注意:字符串插值所有可用的选项在 字符串插值 这章中讲述。 ### 注释 @@ -115,9 +115,9 @@ Swift 中的注释与C 语言的注释非常相似。单行注释以双正斜杠 /* this is also a comment, but written over multiple lines */ - + 与C 语言多行注释不同的是,Swift 的多行注释可以嵌套在其它的多行注释之中。你可以先生成一个多行注释块,然后在这个注释块之中再嵌套成第二个多行注释。终止注释时先插入第二个注释块的终止标记,然后再插入第一个注释块的终止标记: - + /* this is the start of the first multiline comment /* this is the second, nested multiline comment */ this is the end of the first multiline comment */ @@ -129,3 +129,162 @@ Swift 中的注释与C 语言的注释非常相似。单行注释以双正斜杠 let cat = "🐱"; println(cat) // prints "🐱" + + +## 整数 + +整数就是没有小数部分的数字,比如`42`和`-23`。整数可以是有符号(正、负、零)或者无符号(正、零)。 + +Swift 提供了8、16、32和64位的有符号和无符号整数类型。这些整数类型和 C 语言的命名方式很像,比如8位无符号整数类型是`UInt8`,32位有符号整数类型是`Int32`。就像 Swift 的其他类型一样,整数类型采用大写命名法。 + +### 整数范围 + +你可以访问不同整数类型的`min`和`max`属性来获取对应类型的最大值和最小值: + + let minValue = UInt8.min // minValue 为 0,是 UInt8 类型的最小值 + let maxValue = UInt8.max // maxValue 为 255,是 UInt8 类型的最大值 + +### Int + +一般来说,你不需要专门指定整数的长度。Swift 提供了一个特殊的整数类型`Int`,长度与当前平台的原生字长相同: + +* 在32位平台上,`Int`和`Int32`长度相同。 +* 在64位平台上,`Int`和`Int64`长度相同。 + +除非你需要特定长度的整数,一般来说使用`Int`就够了。这可以提高代码一致性和可复用性。即使是在32位平台上,`Int`可以存储的整数范围也可以达到`-2147483648`~`2147483647`,大多数时候这已经足够大了。 + +### UInt + +Swift 也提供了一个特殊的无符号类型`UInt`,长度与当前平台的原生字长相同: + +* 在32位平台上,`UInt`和`UInt32`长度相同。 +* 在64位平台上,`UInt`和`UInt64`长度相同。 + +> 注意:尽量不要使用`UInt`,除非你真的需要存储一个和当前平台原生字长相同的无符号整数。除了这种情况,最好使用`Int`,即使你要存储的值已知是非负的。统一使用`Int`可以提高代码的可复用性,避免不同类型数字之间的转换,并且匹配数字的类型推测,详情参见[类型安全和类型推测](## 类型安全和类型推测)。 + +## 浮点数 + +浮点数是有小数部分的数字,比如`3.14159`,`0.1`和`-273.15`。 + +浮点类型比整数类型表示的范围更大,可以存储比`Int`类型更大或者更小的数字。Swift 提供了两种有符号浮点数类型: + +* `Double`表示64位浮点数。当你需要存储很大或者很高精度的浮点数时请使用此类型。 +* `Float`表示32位浮点数。精度要求不高的话可以使用此类型。 + +> 注意:`Double`精确度很高,至少有15位数字,而`Float`最少只有6位数字。选择哪个类型取决于你的代码需要处理的数字大小。 + +## 类型安全和类型推测 + +Swift 是一个类型安全的语言。类型安全的语言可以让你清楚地知道代码要处理的值的类型。如果你的代码需要一个`String`,你绝对不可能不小心传进去一个`Int`。 + +Swift 是类型安全的,会在编译你的代码时进行类型检查,如果遇到不匹配的类型会报错。这可以让你在开发的时候尽早发现并修复错误。 + +当你要处理不同类型的值时,类型检查可以帮你避免错误。然而,这并不是说你每次声明常量和变量的时候都需要显式指定类型。如果你没有显式指定类型,Swift 会使用类型推测来选择合适的类型。有了类型推测,编译器可以在编译代码的时候自动推测出表达式的类型。原理很简单,判断你赋的值即可。 + +因为有类型推测,和 C 或者 Objc 比起来 Swift 很少需要声明类型。常量和变量虽然需要明确类型,但是大部分工作并不需要你自己来完成。 + +当你声明常量或者变量并赋初值的时候类型推测非常有用。当你在声明常量或者变量的时候赋给它们一个原始值即可触发类型推测。(原始值就是会直接出现在你代码中的值,比如`42`和`3.14159`。) + +举个例子,如果你给一个新常量赋值`42`并且没有标明类型,Swift 可以推测出常量类型是`Int`,因为你给它赋的初值看起来很像一个整数: + + let meaningOfLife = 42 + // meaningOfLife 会被推测为 Int 类型 + +同理,如果你没有给浮点原始值标明类型,Swift 会推测你想要的是`Double`: + + let pi = 3.14159 + // pi 会被推测为 Double 类型 + +当推测浮点数的类型时,Swift 总是会选择`Double`而不是`Float`。 + +如果表达式中同时出现了整数和浮点数,会被推测为`Double`类型: + + let anotherPi = 3 + 0.14159 + // anotherPi 会被推测为 Double 类型 + +原始值`3`没有显式声明类型,而表达式中出现了一个浮点原始值,所以表达式会被推测为`Double`类型。 + +## 数值类原始值 + +整数原始值可以被写作: + +* 一个十进制数,没有前缀 +* 一个二进制数,前缀是`0b` +* 一个八进制数,前缀是`0o` +* 一个十六进制数,前缀是`0x` + +下面的所有整数原始值的十进制值都是`17`: + + let decimalInteger = 17 + let binaryInteger = 0b10001 // 二进制的17 + let octalInteger = 0o21 // 八进制的17 + let hexadecimalInteger = 0x11 // 十六机制的17 + +浮点原始值可以是十进制(没有前缀)或者是十六进制(前缀是`0x`)。小数点两边必须有至少一个十进制数字(或者是十六进制的数字)。浮点原始值还有一个可选的指数,在十进制浮点数中通过大写或者小写的`e`来指定,在十六进制浮点数中通过大写或者小写的`p`来指定。 + +如果一个十进制数的指数为`exp`,那这个数相当于基数和10^exp的乘积: +* 1.25e2 表示 1.25 × 10^2,等于 125.0。 +* 1.25e-2 表示 1.25 × 10^-2,等于 0.0125。 + +如果一个十六进制数的指数为`exp`,那这个数相当于基数和2^exp的乘积: +* 0xFp2 表示 15 × 2^2,等于 60.0。 +* 0xFp-2 表示 15 × 2^-2,等于 3.75。 + +下面的这些浮点原始值都等于十进制的`12.1875`: + + let decimalDouble = 12.1875 + let exponentDouble = 1.21875e1 + let hexadecimalDouble = 0xC.3p0 + +数值类原始值可以包括额外的格式来增强可读性。整数和浮点数都可以添加额外的零并且包含下划线,并不会影响原始值: + + let paddedDouble = 000123.456 + let oneMillion = 1_000_000 + let justOverOneMillion = 1_000_000.000_000_1 + +## 数值类型转换 + +通常来讲,即使代码中的整数常量和变量已知非负,也请使用`Int`类型。总是使用默认的整数类型可以保证你的整数常量和变量可以直接被复用并且可以匹配整数类原始值的类型推测。 +只有在必要的时候才使用其他整数类型,比如要处理外部的长度明确的数据或者为了优化性能、内存占用等等。使用显式指定长度的类型可以及时发现值溢出并且可以暗示正在处理特殊数据。 + +### 整数转换 + +不同整数类型的变量和常量可以存储不同大小的数字。`Int8`类型的常量或者变量可以存储的数字范围是`-128`~`127`,`UInt8`类型的常量或者变量能存储的数字范围是`0`~`255`。如果数字超出了常量或者变量可存储的范围,编译的时候会报错: + + let cannotBeNegative: UInt8 = -1 + // UInt8 类型不能存储负数,所以会报错 + let tooBig: Int8 = Int8.max + 1 + // Int8 类型不能存储超过最大值的数,所以会报错 + +因为每一个整数类型都可以存储不同范围的值,你必须根据情况来选择不同的转换方法。不同的转换方法可以暴露出隐藏的转换错误并让你的代码更加清晰。 + +要将一种数字类型转换成另一种,你要用当前值来初始化一个新数字,这个数字的类型就是你的目标类型。在下面的例子中,常量`twoThousand`类型是`UInt16`,然而常量`one`类型是`Uint8`。它们不能直接相加,因为它们类型不同。所以要调用`UInt16(one)`来创建一个新的`UInt16`数字并用`one`的值来初始化,然后使用这个新数字来计算: + + let twoThousand: UInt16 = 2_000 + let one: UInt8 = 1 + let twoThousandAndOne = twoThousand + UInt16(one) + +现在两个数字的类型都是`UInt16`,可以进行相加。目标常量`twoThousandAndOne`的类型被推测为`UInt16`,因为它是两个`UInt16`值的合。 + +`SomeType(ofInitialValue)`是调用 Swift 构造器并传入一个初始值的默认方法。在语言内部,`UInt16`有一个构造器,可以接受一个`UInt8`类型的值,所以这个构造器可以用现有的`UInt8`来创建一个新的`UInt16`。注意,你并不能传入任意类型的值,只能传入`UInt16`内部有对应构造器的值。不过你可以扩展现有的类型来让它可以接收其他类型的值(包括自定义类型),详情参见`扩展(链接待添加)`. + +### 整数和浮点数转换 + +整数和浮点数的转换必须显式指定类型: + + let three = 3 + let pointOneFourOneFiveNine = 0.14159 + let pi = Double(three) + pointOneFourOneFiveNine + // pi 等于 3.14159,所以被推测为 Double 类型 + +这个例子中,常量`three`的值被用来创建一个`Double`类型的值,所以加号两边的数类型相同。如果不进行转换,两者无法相加。 + +浮点数转换为整数也一样,整数类型可以用`Double`或者`Float`类型来初始化: + + let integerPi = Int(pi) + // integerPi 等于 3,所以被推测为 Int 类型 + +当用这种方式来初始化一个新的整数值时,浮点值会被截断。也就是说`4.75`会变成`4`,`-3.9`会变成`3`。 + +> 注意:结合数字类常量和变量不同于结合数字类原始值。原始值`3`可以直接和原始值`0.14159`相加,因为数字原始值本身没有明确的类型。它们的类型只在编译器需要求值的时候被推测。 + diff --git a/source/chapter2/03_Strings_and_Characters.md b/source/chapter2/03_Strings_and_Characters.md index 8fe256db..bf1527f2 100644 --- a/source/chapter2/03_Strings_and_Characters.md +++ b/source/chapter2/03_Strings_and_Characters.md @@ -1,22 +1,30 @@ # 字符串和字符 (Strings and Characters) -**String** 是一个有序的字符集合,例如 "hello, world", "albatross"。Swift 字符串通过 **String** 类型来表示,也可以表示为 **Character** 类型值的集合。 +**String** 是一个有序的字符集合,例如 "hello, world", "albatross"。 +Swift 字符串通过 **String** 类型来表示,也可以表示为 **Character** 类型值的集合。 -Swift 的 **String** 和 **Character** 类型提供了一个快速的,兼容 Unicode 的方式来处理代码中的文本信息。创建和操作字符串的语法与 C的操作方式相似,轻量并且易读。字符串连接操作只需要简单地通过 `+` 号将两个字符串相连即可。与 Swift 中其他值一样,能否更改字符串的值,取决于其被定义为常量还是变量。 +Swift 的 **String** 和 **Character** 类型提供了一个快速的,兼容 Unicode 的方式来处理代码中的文本信息。 +创建和操作字符串的语法与 C的操作方式相似,轻量并且易读。 +字符串连接操作只需要简单地通过 `+` 号将两个字符串相连即可。 +与 Swift 中其他值一样,能否更改字符串的值,取决于其被定义为常量还是变量。 -尽管语法简易,但 **String** 类型是一种快速、现代化的字符串实现。每一个字符串都是由独立编码的 Unicode 字符组成,并提供了用于访问这些字符在不同的Unicode表示的支持。 +尽管语法简易,但 **String** 类型是一种快速、现代化的字符串实现。 +每一个字符串都是由独立编码的 Unicode 字符组成,并提供了用于访问这些字符在不同的Unicode表示的支持。 **String** 也可以用于在常量、变量、字面量和表达式中进行字符串插值,这使得创建用于展示、存储和打印的字符串变得轻松自如。 > 注意: > -> Swift 的 **String** 类型与 Foundation NSString 类进行了无缝桥接。如果您利用 Cocoa 或 Cocoa Touch 中的 Foundation 框架进行工作,整个 NSString API 都可以调用您创建的任意 String 类型的值,您额外还可以在任意 API 中使用本章介绍的 **String** 特性。您也可以在任意要求传入NSString 实例作为参数的 API 中使用 **String** 类型的值进行替换。 +> Swift 的 **String** 类型与 Foundation NSString 类进行了无缝桥接。 +> 如果您利用 Cocoa 或 Cocoa Touch 中的 Foundation 框架进行工作,整个 NSString API 都可以调用您创建的任意 String 类型的值,您额外还可以在任意 API 中使用本章介绍的 **String** 特性。 +> 您也可以在任意要求传入NSString 实例作为参数的 API 中使用 **String** 类型的值进行替换。 > >更多关于在 Foundation 和 Cocoa 中使用 **String** 的信息请查看 [Using Swift with Cocoa and Objective-C](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/index.html#//apple_ref/doc/uid/TP40014216)。 ### 字符串字面量 -您可以在您的代码中包含一段预定义的字符串值作为字符串字面量。字符串字面量是由双引号包裹着的具有固定顺序的文本字符集。 +您可以在您的代码中包含一段预定义的字符串值作为字符串字面量。 +字符串字面量是由双引号包裹着的具有固定顺序的文本字符集。 字符串字面量可以用于为常量和变量提供初始值。 @@ -49,7 +57,8 @@ let sparklingHeart = "\U0001F496" // 💖, Unicode scalar U+1F496 ### 初始化空字符串 -为了构造一个很长的字符串,可以创建一个空字符串作为初始值。可以将空的字符串字面量赋值给变量,也可以初始化一个新的 **String** 实例: +为了构造一个很长的字符串,可以创建一个空字符串作为初始值。 +可以将空的字符串字面量赋值给变量,也可以初始化一个新的 **String** 实例: ``` var emptyString = "" // empty string literal @@ -85,19 +94,25 @@ constantString += " and another Highlander" ### 字符串是值类型 -Swift 的 **String** 类型是值类型。如果您创建了一个新的字符串,那么当其进行常量、变量赋值操作或在函数/方法中传递时,会进行值拷贝。任何情况下,都会对已有字符串值创建新副本,并对该新副本进行传递或赋值。值类型在 [Structures and Enumerations Are Value Types](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/ClassesAndStructures.html#//apple_ref/doc/uid/TP40014097-CH13-XID_104) 中进行了说明。 +Swift 的 **String** 类型是值类型。 +如果您创建了一个新的字符串,那么当其进行常量、变量赋值操作或在函数/方法中传递时,会进行值拷贝。 +任何情况下,都会对已有字符串值创建新副本,并对该新副本进行传递或赋值。 +值类型在 [Structures and Enumerations Are Value Types](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/ClassesAndStructures.html#//apple_ref/doc/uid/TP40014097-CH13-XID_104) 中进行了说明。 > 注意: > -> 其 Cocoa 中的 NSString 不同,当您在 Cocoa 中创建了一个 NSString 实例,并将其传递给一个函数/方法,或者赋值给一个变量,您永远都是传递或赋值同一个 NSString 实例的一个引用。除非您特别要求其进行值拷贝,否则字符串不会进行赋值新副本操作。 +> 与 Cocoa 中的 NSString 不同,当您在 Cocoa 中创建了一个 NSString 实例,并将其传递给一个函数/方法,或者赋值给一个变量,您永远都是传递或赋值同一个 NSString 实例的一个引用,除非您特别要求其进行值拷贝,否则字符串不会进行赋值新副本操作。 -Swift 默认字符串拷贝的方式保证了在函数/方法中传递的是字符串的值,其明确了无论该值来自于哪里,都是您独自拥有的。您可以放心您传递的字符串本身不会被更改。 +Swift 默认字符串拷贝的方式保证了在函数/方法中传递的是字符串的值,其明确了无论该值来自于哪里,都是您独自拥有的。 +您可以放心您传递的字符串本身不会被更改。 在实际编译时,Swift编译器会优化字符串的使用,使实际的复制只发生在绝对必要的情况下,这意味着您始终可以将字符串作为值类型的同时获得极高的性能。 #### 使用字符(Characters) -Swift 的 **String** 类型表示特定序列的字符值的集合。每一个字符值代表一个 Unicode 字符。您可利用 for-in 循环来遍历字符串中的每一个字符: +Swift 的 **String** 类型表示特定序列的字符值的集合。 +每一个字符值代表一个 Unicode 字符。 +您可利用 for-in 循环来遍历字符串中的每一个字符: ``` for character in "Dog!🐶" { @@ -128,11 +143,16 @@ println("unusualMenagerie has \(countElements(unusualMenagerie)) characters") // prints "unusualMenagerie has 40 characters" ``` ->注意: +> 注意: > ->不同的 Unicode 字符以及相同 Unicode 字符的不同表示方式可能需要不同数量的内存空间来存储,所以Swift 中的字符在一个字符串中并不一定占用相同的内存空间。因此,字符串的长度不得不通过迭代字符串中每一个字符的长度来进行计算。如果您正在处理一个长字符串,需要注意 `countElements` 函数必须遍历字符串中的字符以精准计算字符串的长度。 +> 不同的 Unicode 字符以及相同 Unicode 字符的不同表示方式可能需要不同数量的内存空间来存储。 +> 所以Swift 中的字符在一个字符串中并不一定占用相同的内存空间。 +> 因此字符串的长度不得不通过迭代字符串中每一个字符的长度来进行计算。 +> 如果您正在处理一个长字符串,需要注意 `countElements` 函数必须遍历字符串中的字符以精准计算字符串的长度。 > ->另外需要注意的是通过 `countElements` 返回的字符数量并不总是与包含相同字符的 NSString 的 `length` 属性相同。NSString 的 `length` 属性是基于利用 UTF-16 表示的十六位代码单元数字,而不是基于 Unicode 字符。为了解决这个问题,NSString 的 `length` 属性在被 Swift的 **String** 访问时会成为 `utf16count`。 +> 另外需要注意的是通过 `countElements` 返回的字符数量并不总是与包含相同字符的 NSString 的 `length` 属性相同。 +> NSString 的 `length` 属性是基于利用 UTF-16 表示的十六位代码单元数字,而不是基于 Unicode 字符。 +> 为了解决这个问题,NSString 的 `length` 属性在被 Swift的 **String** 访问时会成为 `utf16count`。 ### 连接字符串和字符 @@ -168,7 +188,8 @@ welcome += character1 ### 字符串插值 -字符串插值是一种全新的构建字符串的方式,可以在其中包含常量、变量、字面量和表达式。您插入的字符串字面量的每一项都被包裹在以反斜线为前缀的圆括号中: +字符串插值是一种全新的构建字符串的方式,可以在其中包含常量、变量、字面量和表达式。 +您插入的字符串字面量的每一项都被包裹在以反斜线为前缀的圆括号中: ``` let multiplier = 3 @@ -176,9 +197,12 @@ let message = "\(multiplier) times 2.5 is \(Double(multiplier) * 2.5)" // message is "3 times 2.5 is 7.5" ``` -在上面的例子中,`multiplier` 作为 `\(multiplier)` 被插入到一个字符串字面量中。当创建字符串执行插值计算时此占位符会被替换为 `multiplier` 实际的值。 +在上面的例子中,`multiplier` 作为 `\(multiplier)` 被插入到一个字符串字面量中。 +当创建字符串执行插值计算时此占位符会被替换为 `multiplier` 实际的值。 -`multiplier` 的值也作为字符串中后面表达式的一部分。该表达式计算 `Double(multiplier) * 2.5` 的值并将结果 (7.5) 插入到字符串中。在这个例子中,表达式写为 `\(Double(multiplier) * 2.5)` 并包含在字符串字面量中。 +`multiplier` 的值也作为字符串中后面表达式的一部分。 +该表达式计算 `Double(multiplier) * 2.5` 的值并将结果 (7.5) 插入到字符串中。 +在这个例子中,表达式写为 `\(Double(multiplier) * 2.5)` 并包含在字符串字面量中。 >注意: > @@ -203,7 +227,9 @@ if quotation == sameQuotation { ##### 前缀/后缀相等 -通过调用字符串的 `hasPrefix`/`hasSuffix` 方法来检查字符串是否拥有特定前缀/后缀。两个方法均需要以字符串作为参数传入并传出 **Boolean** 值。两个方法均执行基本字符串和前缀/后缀字符串之间逐个字符的比较操作。 +通过调用字符串的 `hasPrefix`/`hasSuffix` 方法来检查字符串是否拥有特定前缀/后缀。 +两个方法均需要以字符串作为参数传入并传出 **Boolean** 值。 +两个方法均执行基本字符串和前缀/后缀字符串之间逐个字符的比较操作。 下面的例子以一个字符串数组表示莎士比亚话剧 `罗密欧与朱丽叶` 中前两场的场景位置: @@ -250,13 +276,15 @@ let whispered = normal.lowercaseString ### Unicode -Unicode 是文本编码和表示的国际标准。它使您可以用标准格式表示来自任意语言几乎所有的字符,并能够对文本文件或网页这样的外部资源中的字符进行读写操作。 +Unicode 是文本编码和表示的国际标准。 +它使您可以用标准格式表示来自任意语言几乎所有的字符,并能够对文本文件或网页这样的外部资源中的字符进行读写操作。 Swift 的字符串和字符类型是完全兼容 Unicode 的,它支持如下所述的一系列不同的 Unicode 编码。 ###### Unicode 术语(Terminology) -Unicode 中每一个字符都可以被解释为一个或多个 unicode 标量。字符的 unicode 标量是一个唯一的21位数字(和名称),例如 `U+0061` 表示小写的拉丁字母A ("a"),`U+1F425` 表示正面站立的鸡宝宝 ("🐥") +Unicode 中每一个字符都可以被解释为一个或多个 unicode 标量。 +字符的 unicode 标量是一个唯一的21位数字(和名称),例如 `U+0061` 表示小写的拉丁字母A ("a"),`U+1F425` 表示小幺鸡表情 ("🐥") 当 Unicode 字符串被写进文本文件或其他存储结构当中,这些 unicode 标量将会按照 Unicode 定义的集中格式之一进行编码。其包括 `UTF-8` (以8位代码单元进行编码) 和 `UTF-16` (以16位代码单元进行编码)。 @@ -264,7 +292,8 @@ Unicode 中每一个字符都可以被解释为一个或多个 unicode 标量。 Swift 提供了几种不同的方式来访问字符串的 Unicode 表示。 -您可以利用 `for-in` 来对字符串进行遍历,从而以 Unicode 字符的方式访问每一个字符值。该过程在 [Working with Characters](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html#//apple_ref/doc/uid/TP40014097-CH7-XID_376) 中进行了描述。 +您可以利用 `for-in` 来对字符串进行遍历,从而以 Unicode 字符的方式访问每一个字符值。 +该过程在 [Working with Characters](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html#//apple_ref/doc/uid/TP40014097-CH7-XID_376) 中进行了描述。 另外,能够以其他三种 Unicode 兼容的方式访问字符串的值: @@ -280,7 +309,8 @@ let dogString = "Dog!🐶" ##### UTF-8 -您可以通过遍历字符串的 `utf8` 属性来访问它的 `UTF-8` 表示。其为 **UTF8View** 类型的属性,**UTF8View** 是无符号8位 (`UInt8`) 值的集合,每一个 `UIn8` 都是一个字符的 UTF-8 表示: +您可以通过遍历字符串的 `utf8` 属性来访问它的 `UTF-8` 表示。 +其为 **UTF8View** 类型的属性,**UTF8View** 是无符号8位 (`UInt8`) 值的集合,每一个 `UIn8` 都是一个字符的 UTF-8 表示: ``` for codeUnit in dogString.utf8 { @@ -290,11 +320,13 @@ print("\n") // 68 111 103 33 240 159 144 182 ``` -上面的例子中,前四个10进制代码单元值 (68, 111, 103, 33) 代表了字符 `D` `o` `g` 和 `!` ,他们的 UTF-8 表示与 ASCII 表示相同。后四个代码单元值 (240, 159, 144, 182) 是 `狗脸表情` 的4位 UTF-8 表示。 +上面的例子中,前四个10进制代码单元值 (68, 111, 103, 33) 代表了字符 `D` `o` `g` 和 `!` ,他们的 UTF-8 表示与 ASCII 表示相同。 +后四个代码单元值 (240, 159, 144, 182) 是 `狗脸表情` 的4位 UTF-8 表示。 ##### UTF-16 -您可以通过遍历字符串的 `utf16` 属性来访问它的 `UTF-16` 表示。其为 **UTF16View** 类型的属性,**UTF16View** 是无符号16位 (`UInt16`) 值的集合,每一个 `UInt16` 都是一个字符的 UTF-16 表示: +您可以通过遍历字符串的 `utf16` 属性来访问它的 `UTF-16` 表示。 +其为 **UTF16View** 类型的属性,**UTF16View** 是无符号16位 (`UInt16`) 值的集合,每一个 `UInt16` 都是一个字符的 UTF-16 表示: ``` for codeUnit in dogString.utf16 { @@ -306,11 +338,14 @@ print("\n") 同样,前四个代码单元值 (68, 111, 103, 33) 代表了字符 `D` `o` `g` 和 `!` ,他们的 UTF-16 代码单元和 UTF-8 完全相同。 -第五和第六个代码单元值 (55357 and 56374) 是 `狗脸表情` 字符的UTF-16 表示。第一个值为 `U+D83D` (十进制值为 55357),第二个值为 `U+DC36` (十进制值为 56374)。 +第五和第六个代码单元值 (55357 and 56374) 是 `狗脸表情` 字符的UTF-16 表示。 +第一个值为 `U+D83D` (十进制值为 55357),第二个值为 `U+DC36` (十进制值为 56374)。 ##### Unicode 标量 (Scalars) -您可以通过遍历字符串的 `unicodeScalars` 属性来访问它的 Unicode 标量表示。其为 **UnicodeScalarView** 类型的属性, **UnicodeScalarView** 是 `UnicodeScalar` 的集合。`UnicodeScalar` 是21位的 Unicode 代码点。 +您可以通过遍历字符串的 `unicodeScalars` 属性来访问它的 Unicode 标量表示。 +其为 **UnicodeScalarView** 类型的属性, **UnicodeScalarView** 是 `UnicodeScalar` 的集合。 +`UnicodeScalar` 是21位的 Unicode 代码点。 每一个 `UnicodeScalar` 拥有一个值属性,可以返回对应的21位数值,用 `UInt32` 来表示。 @@ -322,7 +357,9 @@ print("\n") // 68 111 103 33 128054 ``` -同样,前四个代码单元值 (68, 111, 103, 33) 代表了字符 `D` `o` `g` 和 `!` 。第五位数值,128054,是一个十六进制1F436的十进制表示。其等同于 `狗脸表情` 的Unicode 标量 U+1F436。 +同样,前四个代码单元值 (68, 111, 103, 33) 代表了字符 `D` `o` `g` 和 `!` 。 +第五位数值,128054,是一个十六进制1F436的十进制表示。 +其等同于 `狗脸表情` 的Unicode 标量 U+1F436。 作为查询字符值属性的一种替代方法,每个 `UnicodeScalar` 值也可以用来构建一个新的字符串值,比如在字符串插值中使用: diff --git a/source/chapter2/07_Closures.md b/source/chapter2/07_Closures.md index e69de29b..b651e336 100644 --- a/source/chapter2/07_Closures.md +++ b/source/chapter2/07_Closures.md @@ -0,0 +1,358 @@ +# 闭包 + +闭包是功能性自包含模块,可以在代码中被传递和使用。 +Swift 中的闭包与 C 和 Objective-C 中的 `blocks` 以及其他一些编程语言中的 `lambdas` 比较相似。 + +闭包可以 **捕获** 和存储其所在上下文中任意常量和变量的引用。 +这就是所谓的闭合并包裹着这些常量和变量,俗称闭包。Swift 会为您管理在 **捕获** 过程中涉及到的内存操作。 + +> 注意: +> +> 如果您不熟悉 **捕获** (capturing) 这个概念也不用担心,后面会详细对其进行介绍。 + +在 `函数` 章节中介绍的全局和嵌套函数实际上也是特殊的闭包,闭包采取如下三种形式之一: + +* 全局函数是一个有名字但不会捕获任何值的闭包 +* 嵌套函数是一个有名字并可以捕获其封闭函数域内值的闭包 +* 闭包表达式是一个利用轻量级语法所写的可以捕获其上下文中变量或常量值的没有名字的闭包 + +Swift 的闭包表达式拥有简洁的风格,并鼓励在常见场景中进行语法优化,主要优化如下: + +* 利用上下文推断参数和返回值类型 +* 单表达式闭包可以省略 `return` 关键字 +* 参数名称缩写 +* Trailing 闭包语法 + +### 闭包表达式 + +嵌套函数是一个在较复杂函数中方便进行命名和定义自包含代码模块的方式。 +当然,有时候撰写小巧的没有完整定义和命名的类函数结构也是很有用处的,尤其是在您处理一些函数并需要将另外一些函数作为该函数的参数时。 + +闭包表达式是一种利用简洁语法构建内联闭包的方式。 +闭包表达式提供了一些语法优化,使得撰写闭包变得简单明了。 +下面闭包表达式的例子通过使用几次迭代展示了 `sort` 函数定义和语法优化的方式。 +每一次迭代都用更简洁的方式描述了相同的功能。 + +##### `sort` 函数 + +Swift 标准库提供了 `sort` 函数,会根据您提供的排序闭包将已知类型数组中的值进行排序。 +一旦排序完成,函数会返回一个与原数组大小相同的新数组,该数组中包含已经正确排序的同类型元素。 + +下面的闭包表达式示例使用 `sort` 函数对一个 **String** 类型的数组进行字母逆序排序,以下是初始数组值: + +``` +let names = ["Chris", "Alex", "Ewa", "Barry", "Daniella"] +``` + +该例子对一个 **String** 类型的数组进行排序,因此排序闭包需为 `(String, String) -> Bool` 类型的函数。 + +提供排序闭包的一种方式是撰写一个符合其类型要求的普通函数,并将其作为 `sort` 函数的第二个参数传入: + +``` +func backwards(s1: String, s2: String) -> Bool { + return s1 > s2 +} +var reversed = sort(names, backwards) +// reversed is equal to ["Ewa", "Daniella", "Chris", "Barry", "Alex"] +``` + +如果第一个字符串 (s1) 大于第二个字符串 (s2),`backwards` 函数则返回 `true`,表示在新的数组中 s1 应该出现在 s2 前。 +字符中的 "大于" 表示 "按照字母顺序后出现"。 +这意味着字母 "B" 大于字母 "A", 字符串 "Tom" 大于字符串 "Tim"。 +其将进行字母逆序排序,"Barry" 将会排在 "Alex" 之后。 + +然而,这是一个相当冗长的方式,本质上只是写了一个单表达式函数 (a > b)。 +在下面的例子中,利用闭合表达式语法可以更好的构造一个内联排序闭包。 + +##### 闭包表达式语法 + +闭包表达式语法有如下一般形式: + +``` +{ (parameters) -> returnType in + statements +} +``` + +闭包表达式语法可以使用常量、变量和 `inout` 类型作为参数,不提供默认值。 +也可以在参数列表的最后使用可变参数。元组也可以作为参数和返回值。 + +下面的例子展示了之前 `backwards` 函数对应的闭包表达式版本的代码: + +``` +reversed = sort(names, { (s1: String, s2: String) -> Bool in + return s1 > s2 + }) +``` + +需要注意的是内联闭包参数和返回值类型声明与 `backwards` 函数类型声明相同。 +在这两种方式中,都写成了 (s1: String, s2: String) -> Bool。 +然而在内联闭包表达式中,函数和返回值类型都写在大括号内,而不是大括号外。 + +闭包的函数体部分由关键字 `in` 引入。 +该关键字表示闭包的参数和返回值类型定义已经完成,闭包函数体即将开始。 + +因为这个闭包的函数体部分如此短以至于可以将其改写成一行代码: + +``` +reversed = sort(names, { (s1: String, s2: String) -> Bool in return s1 > s2 } ) +``` + +这说明 `sort` 函数的整体调用保持不变,一对圆括号仍然包裹住了函数中整个参数集合。而其中一个参数现在变成了内联闭包 (相比于 `backwards` 版本的代码)。 + +##### 根据上下文推断类型 + +因为排序闭包是作为函数的参数进行传入的,Swift可以推断其参数和返回值的类型。 +`sort` 期望第二个参数是类型为 `(String, String) -> Bool` 的函数,因此实际上 `String`, `String` 和 `Bool` 类型并不需要作为闭包表达式定义中的一部分。 +因为所有的类型都可以被正确推断,返回箭头 (->) 和 围绕在参数周围的括号也可以被省略: + +``` +reversed = sort(names, { s1, s2 in return s1 > s2 } ) +``` + +实际上任何情况下,通过内联闭包表达式构造的闭包作为参数传递给函数时,都可以推断出闭包的参数和返回值类型,这意味着您几乎不需要利用完整格式构造任何内联闭包。 + +##### 单行表达式闭包可以省略 `return` + +单行表达式闭包可以通过隐藏 `return` 关键字来隐式返回单行表达式的结果,如上版本的例子可以改写为: + +``` +reversed = sort(names, { s1, s2 in s1 > s2 } ) +``` + +在这个例子中,`sort` 函数的第二个参数函数类型明确了闭包必须返回一个 **Bool** 类型值。 +因为闭包函数体只包含了一个单一表达式 (s1 > s2),该表达式返回 **Bool** 类型值,因此这里没有歧义,`return`关键字可以省略。 + +##### 参数名称缩写 + +Swift 自动为内联函数提供了参数名称缩写功能,您可以直接通过 `$0`,`$1`,`$2` 来顺序调用闭包的参数。 + +如果您在闭包表达式中使用参数名称缩写,您可以在闭包参数列表中省略对其的定义,并且对应参数名称缩写的类型会通过函数类型进行推断。 +`in` 关键字也同样可以被省略,因为此时闭包表达式完全由闭包函数体构成: + +``` +reversed = sort(names, { $0 > $1 } ) +``` + +在这个例子中,`$0` 和 `$1` 表示闭包中第一个和第二个 **String** 类型的参数。 + +##### 运算符函数 + +实际上还有一种更简短的方式来撰写上面例子中的闭包表达式。 +Swift 的 **String** 类型定义了关于大于号 (>) 的字符串实现,其作为一个函数接受两个 **String** 类型的参数并返回 **Bool** 类型的值。 +而这正好与 `sort` 函数的第二个参数需要的函数类型相符合。 +因此,您可以简单地传递一个大于号,Swift可以自动推断出您想使用大于号的字符串函数实现: + +``` +reversed = sort(names, >) +``` + +更多关于运算符表达式的内容请查看 [Operator Functions](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/AdvancedOperators.html#//apple_ref/doc/uid/TP40014097-CH27-XID_43) 。 + +### Trailing 闭包 + +如果您需要将一个很长的闭包表达式作为最后一个参数传递给函数,可以使用 trailing 闭包来增强函数的可读性。 +Trailing 闭包是一个书写在函数括号之外(之后)的闭包表达式,函数支持将其作为最后一个参数调用。 + +``` +func someFunctionThatTakesAClosure(closure: () -> ()) { + // 函数体部分 +} + +// 以下是不使用 trailing 闭包进行函数调用 + +someFunctionThatTakesAClosure({ + // 闭包主体部分 + }) + +// 以下是使用 trailing 闭包进行函数调用 + +someFunctionThatTakesAClosure() { + // 闭包主体部分 +} +``` +> 注意: +> +> 如果函数只需要闭包表达式一个参数,当您使用 trailing 闭包时,您甚至可以把 () 省略掉。 +NOTE + +在上例中作为 `sort` 函数参数的字符串排序闭包可以改写为: + +``` +reversed = sort(names) { $0 > $1 } +``` + +当闭包非常长以至于不能在一行中进行书写时,Trailing 闭包变得非常有用。 +举例来说,Swift 的 **Array** 类型有一个 `map` 方法,其获取一个闭包表达式作为其唯一参数。 +数组中的每一个元素调用一次该闭包函数,并返回该元素所映射的值(也可以是不同类型的值)。 +具体的映射方式和返回值类型由闭包来指定。 + +当提供给数组闭包函数后,`map` 方法将返回一个新的数组,数组中包含了与原数组一一对应的映射后的值。 + +下例介绍了如何在 `map` 方法中使用 trailing 闭包将 **Int** 类型数组 `[16,58,510]` 转换为包含对应 **String** 类型的数组 `["OneSix", "FiveEight", "FiveOneZero"]`: + +``` +let digitNames = [ + 0: "Zero", 1: "One", 2: "Two", 3: "Three", 4: "Four", + 5: "Five", 6: "Six", 7: "Seven", 8: "Eight", 9: "Nine" +] +let numbers = [16, 58, 510] +``` + +如上代码创建了一个数字位和他们名字映射的英文版本字典。 +同时定义了一个准备转换为字符串的整型数组。 + +您现在可以通过传递一个 trailing 闭包给 `numbers` 的 `map` 方法来创建对应的字符串版本数组。 +需要注意的时调用 `numbers.map` 不需要在 `map` 后面包含任何括号,因为其只需要传递闭包表达式这一个参数,并且该闭包表达式参数通过 trailing 方式进行撰写: + +``` +let strings = numbers.map { + (var number) -> String in + var output = "" + while number > 0 { + output = digitNames[number % 10]! + output + number /= 10 + } + return output +} +// strings 常量被推断为字符串类型数组,即 String[] +// 其值为 ["OneSix", "FiveEight", "FiveOneZero"] +``` + +`map` 在数组中为每一个元素调用了闭包表达式。 +您不需要指定闭包的输入参数 `number` 的类型,因为可以通过要映射的数组类型进行推断。 + +闭包 `number` 参数被声明为一个变量参数 (变量的具体描述请参看[Constant and Variable Parameters](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Functions.html#//apple_ref/doc/uid/TP40014097-CH10-XID_224)),因此可以在闭包函数体内对其进行修改。 +闭包表达式制定了返回类型为 **String**,以表明存储映射值的新数组类型为 **String**。 + +闭包表达式在每次被调用的时候创建了一个字符串并返回。 +其使用求余运算符 (number % 10) 计算最后一位数字并利用 `digitNames` 字典获取所映射的字符串。 + +> 注意: +> +> 字典 `digitNames` 下标后跟着一个叹号 (!),因为字典下标返回一个可选值 (optional value),表明即使该 key 不存在也不会查找失败。 +> 在上例中,它保证了 `number % 10` 可以总是作为一个 `digitNames` 字典的有效下标 key。 +> 因此叹号可以用于强制展开 (force-unwrap) 存储在可选下标项中的 **String** 类型值。 + +从 `digitNames` 字典中获取的字符串被添加到输出的前部,逆序建立了一个字符串版本的数字。 +(在表达式 `number % 10`中,如果number为16,则返回6,58返回8,510返回0)。 + +`number` 变量之后除以10。 +因为其是整数,在计算过程中未除尽部分被忽略。 +因此 16变成了1,58变成了5,510变成了51。 + +整个过程重复进行,直到 `number /= 10` 为0,这时闭包会将字符串输出,而map函数则会将字符串添加到所映射的数组中。 + +上例中 trailing 闭包语法在函数后整洁封装了具体的闭包功能,而不再需要将整个闭包包裹在 `map` 函数的括号内。 + +### 捕获 (Caputure) + +闭包可以在其定义的上下文中捕获常量或变量。 +即使定义这些常量和变量的原域已经不存在,闭包仍然可以在闭包函数体内引用和修改这些值。 + +Swift最简单的闭包形式是嵌套函数,也就是定义在其他函数的函数体内的函数。 +嵌套函数可以捕获其外部函数所有的参数以及定义的常量和变量。 + +下例为一个叫做 `makeIncrementor` 的函数,其包含了一个叫做 `incrementor` 嵌套函数。 +嵌套函数 `incrementor` 从上下文中捕获了两个值,`runningTotal` 和 `amount`。 +之后 `makeIncrementor` 将 `incrementor` 作为闭包返回。 +每次调用 `incrementor` 时,其会以 `amount` 作为增量增加 `runningTotal` 的值。 + +``` +func makeIncrementor(forIncrement amount: Int) -> () -> Int { + var runningTotal = 0 + func incrementor() -> Int { + runningTotal += amount + return runningTotal + } + return incrementor +} +``` + +`makeIncrementor` 返回类型为 `() -> Int`。 +这意味着其返回的是一个函数,而不是一个简单类型值。 +该函数在每次调用时不接受参数只返回一个 **Int** 类型的值。 +关于函数返回其他函数的内容,请查看[Function Types as Return Types](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Functions.html#//apple_ref/doc/uid/TP40014097-CH10-XID_232)。 + +`makeIncrementor` 函数定义了一个整型变量 `runningTotal` (初始为0) 用来存储当前跑步总数。 +该值通过 `incrementor` 返回。 + +`makeIncrementor` 有一个 **Int** 类型的参数,其外部命名为 `forIncrement`, 内部命名为 `amount`,表示每次 `incrementor` 被调用时 `runningTotal` 将要增加的量。 + +`incrementor` 函数用来执行实际的增加操作。 +该函数简单地使 `runningTotal` 增加 `amount`,并将其返回。 + +如果我们单独看这个函数,会发现看上去不同寻常: + +``` +func incrementor() -> Int { + runningTotal += amount + return runningTotal +} +``` + +`incrementor` 函数并没有获取任何参数,但是在函数体内访问了 `runningTotal` 和 `amount` 变量。这是因为其通过捕获在包含它的函数体内已经存在的 `runningTotal` 和 `amount` 变量而实现。 + +由于没有修改 `amount` 变量,`incrementor` 实际上捕获并存储了该变量的一个副本,而该副本随着 `incrementor` 一同被存储。 + +然而,因为每次调用该函数的时候都会修改 `runningTotal` 的值,`incrementor` 捕获了当前 `runningTotal` 变量的引用,而不是仅仅复制该变量的初始值。捕获一个引用保证了当 `makeIncrementor` 结束时候并不会消失,也保证了当下一次执行 `incrementor` 函数时,`runningTotal` 可以继续增加。 + +> 注意: +> +> Swift 会决定捕获引用还是拷贝值。 +> 您不需要标注 `amount` 或者 `runningTotal` 来声明在嵌入的 `incrementor` 函数中的使用方式。 +> Swift 同时也处理 `runingTotal` 变量的内存管理操作,如果不再被 `incrementor` 函数使用,则会被清除。 + +下面为一个使用 `makeIncrementor` 的例子: + +``` +let incrementByTen = makeIncrementor(forIncrement: 10) +``` + +该例子定义了一个叫做 `incrementByTen` 的常量,该常量指向一个每次调用会加10的 `incrementor` 函数。 +调用这个函数多次可以得到以下结果: + +``` +incrementByTen() +// 返回的值为10 +incrementByTen() +// 返回的值为20 +incrementByTen() +// 返回的值为30 +``` + +如果您创建了另一个 `incrementor`,其会有一个属于自己的独立的 `runningTotal` 变量的引用。 +下面的例子中,`incrementBySevne` 捕获了一个新的 `runningTotal` 变量,该变量和 `incrementByTen` 中捕获的变量没有任何联系: + +``` +let incrementBySeven = makeIncrementor(forIncrement: 7) +incrementBySeven() +// 返回的值为7 +incrementByTen() +// 返回的值为40 +``` + +> 注意: +> +> 如果您闭包分配给一个类实例的属性,并且该闭包通过指向该实例或其成员来捕获了该实例,您将创建一个在闭包和实例间的强引用环。 +> Swift 使用捕获列表来打破这种强引用环。更多信息,请参考 [Strong Reference Cycles for Closures](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/AutomaticReferenceCounting.html#//apple_ref/doc/uid/TP40014097-CH20-XID_61)。 + +### 闭包是引用类型 + +上面的例子中,`incrementBySeven` 和 `incrementByTen` 是常量,但是这些常量指向的闭包仍然可以增加其捕获的变量值。 +这是因为函数和闭包都是引用类型。 + +无论您将函数/闭包赋值给一个常量还是变量,您实际上都是将常量/变量的值设置为对应函数/闭包的引用。 +上面的例子中,`incrementByTen` 指向闭包的引用是一个常量,而并非闭包内容本身。 + +这也意味着如果您将闭包赋值给了两个不同的常量/变量,两个值都会指向同一个闭包: + +``` +let alsoIncrementByTen = incrementByTen +alsoIncrementByTen() +// 返回的值为50 +``` + + + + diff --git a/source/chapter2/16_Automatic_Reference_Counting.md b/source/chapter2/16_Automatic_Reference_Counting.md index e69de29b..d2d6fd59 100644 --- a/source/chapter2/16_Automatic_Reference_Counting.md +++ b/source/chapter2/16_Automatic_Reference_Counting.md @@ -0,0 +1,21 @@ +# 自动引用计数 + +Swift使用自动引用计数(ARC)这一机制来跟踪和管理你的应用程序的内存。通常情况下,Swift的内存管理机制会一直起着作用,你无须自己来考虑内存的管理。ARC会在类的实例不再被使用时,自动释放其占用的内存。 + +然而,在少数情况下,ARC为了能帮助你管理内存,需要更多的关于你的代码之间关系的信息。本章描述了这些情况,并且为你示范怎样启用ARC来管理你的应用程序的内存。 + +> 注意: 引用计数仅仅应用于类的实例。结构体和枚举类型是值类型,不是引用类型,也不是通过引用的方式存储和传递。 + +## 自动引用计数的工作机制 + +当你每次创建一个类的新的实例的时候,ARC会分配一大块内存用来储存实例的信息。内存中会包含实例的类型信息,以及这个实例所有相关属性的值。此外,当实例不再被使用时,ARC释放实例所占用的内存,并让释放的内存能挪作他用。这确保了不再被使用的实例,不会一直占用内存空间。 + +然而,当ARC收回和释放了正在被使用中的实例,该实例的属性和方法将不能再被访问和调用。实际上,如果你试图访问这个实例,你的应用程序很可能会崩溃。 + +为了确保使用中的实例不会被回收,ARC会跟踪和计算每一个类实例正在被多少属性,常量和变量所引用。哪怕实例的引用数为一,ARC都不会回收这个实例。 + +为了使之成为可能,无论你将类实例赋值给属性,常量或者是变量,属性,常量或者变量,都会对此实例创建强引用。之所以称之为强引用,是因为它会将实例牢牢的保持住,只要强引用还在,实例是不允许被释放的。 + +## 自动引用计数实践 + +