创建函数索引计算城市中心。
创建函数索引的注意事项。
本示例展示如何对圆的面积创建函数索引。
This example shows how to create a functional index on the area of a circle.
What lambda that does, it creates on the fly a function, as the program runs. That I can then pass around.
这里的入是在函数运行的时候,由一个函数创建的,然后我会传递这个值。
When I call or invoke a function, think of it as creating a local table.
当我调用一个函数时,想象一下它是在这里创建了一个局部表。
Absolutely, by functions, but you can also create local scope with curly braces.
绝对的,是由函数定义的,但是你也可以用花括号来创建局部范围。
应用推荐