This expression is actually the body of an "anonymous function", called a function literal in Scala.
这个表达式实际上是一个“匿名函数”的函数体,在Scala中称为字面函数。
Like any other parts of the body, the brain needs the necessary fuel to function properly and this fuel comes from our nutrition.
和身体的其他部分一样,大脑需要充足的养料去工作,这些养料就来自于我们的的饮食。
The white food can activate body function, guide the basic motive force of a life, and can promote, keep this kind of energy.
白色食物能够活化身体机能,引导出生命的基本原动力,并且能够将这种能源提升、保持。
What is this? This is a wonderful piece of abstraction. It is saying, you don't need to know squat about what's inside the body of this function. You don't have to worry about the parameter names, because they're going to be preserved, you don't need to worry about how I'm doing it, this tells you how you can use this, in order to use it correctly. Of course, I can then close it off, and off we go.
但是这能告诉你一些信息,这是什么?,这是一段完美的抽象,它的意思是你不需要知道,这个函数的内部构造,你不必担心参数是否重名,因为它们已经被预存了,你不需要担心我如何使用它,它告诉了你你该如何操作,从而正确的使用它,当然我也可以把它关掉。
As we'll discuss in the class, and most of you probably know this, your body weight is a function of how many calories you take in and how many calories you burn off through metabolic processes but also physical activity.
我们将会讲到,而且你们中的大部分人可能也知道,你的体重随着卡路里的摄取量,和代谢中的消耗量而变化,还跟肢体活动有关
应用推荐