@@ -6239,12 +6239,12 @@ sqrt 是个函数,接受一个 Double,返回一个 Double
623962391300
6240624001:08:16,792 --> 01:08:20,161
62416241So it's perfectly legal for me to say operation = sqrt,
6242- 那么我写 operation = sqrt 是完全合法的
6242+ 因此我写 operation = sqrt 是完全合法的
62436243
624462441301
6245624501:08:20,230 --> 01:08:24,198
62466246all right? And how do I call it? Well, I call it just like
6247- 那么我如何调用它呢 ?我可以就像
6247+ 那么我要如何调用它呢 ?我可以就像
62486248
624962491302
6250625001:08:24,266 --> 01:08:27,969
@@ -6254,7 +6254,7 @@ a function. Operation of 4.0 is gonna call, in this case,
625462541303
6255625501:08:28,037 --> 01:08:31,872
62566256square root of 4.0, because operation is a function var,
6257- 会调用 sqrt( 4.0) 因为 operation 是一个函数类型变量
6257+ 会调用 sqrt( 4.0) , 因为 operation 是一个函数类型变量
62586258
625962591304
6260626001:08:31,941 --> 01:08:33,974
@@ -6524,7 +6524,7 @@ we can take that out as well. Okay, and even more,
652465241357
6525652501:11:10,766 --> 01:11:13,835
65266526Swift knows you want to have these embedded functions all
6527- Swift 知道你希望有这个内嵌函数
6527+ Swift 知道你希望这有个内嵌函数
65286528
652965291358
6530653001:11:13,903 --> 01:11:16,938
@@ -6664,7 +6664,7 @@ download something off in the background and when it's done,
666466641385
6665666501:12:40,823 --> 01:12:44,525
66666666it wants to tell you. Okay, we call a function to do that.
6667- 它想要告诉你 。那么我们可以调用一个函数来做到这一点
6667+ 它想要提醒你 。那么我们可以调用一个函数来做到这一点
66686668
666966691386
6670667001:12:44,594 --> 01:12:47,060
@@ -6754,7 +6754,7 @@ And what if I wanted to have an array of all negative 2,
675467541403
6755675501:13:39,782 --> 01:13:43,317
67566756negative 3? Well I would just say negativePrimes =
6757- 组成的数组,我只用写 negativePrimes = prime.map( { -$0})
6757+ 组成的数组,我只用写 negativePrimes = prime.map( { -$0})
67586758
675967591404
6760676001:13:43,386 --> 01:13:47,354
@@ -6799,7 +6799,7 @@ maybe I even want to convert it to a string.
679967991412
6800680001:14:09,878 --> 01:14:11,946
68016801Perfectly legal, doesn't have to be the same type.
6802- 这是完全合法的,新的数组不一定要和老数组为同一个类型
6802+ 这是完全合法的,新的数组不一定要和原来的数组为同一个类型
68036803
680468041413
6805680501:14:12,015 --> 01:14:15,516
0 commit comments