下面几部分再看一下在样本中是如何对这些函数进行编码的,同时还将讨论关系(relationship)、模板(template)和范围(scope)等概念。
The following sections review these functions as they are coded in the sample, and discuss the concepts of relationship, template and scope.
清单2展示了同样的概念,但本例中创建的是一个函数,用于封装乘法表计算背后的逻辑。
Listing 2 shows the same concept, but in this case, you create a function that encapsulates the logic behind this calculation.
在下一期文章中,我将深入介绍函数编程中的重要概念:不可变性。
In the next installment, I'll talk in depth about one of functional programming's building blocks: immutability.
There's no notion of naming a script as you can a function in scratch.
这里没有一个命名一个脚本的概念,而你可以在scratch中命名一个函数。
应用推荐