在 这个系列之前的一篇文章里我们学到了对数组(arrays)使用 map和 flatMap,消除了中间变量(intermediate variables)形式的状态性(statefulness),并使用了一些函数式编程 1 。
基于12个网页-相关网页
eliminating intermediate variables 消去中间变量
identification of intermediate variables 中间变量辨识
intermediate fertility variables 生育率中间变量
This system shows and stores most intermediate variables in the core calculations, which is helpful for debugging and comparison of alternative system models.
系统实现了核心计算的大部分中间变量的显示与存储,便于进行模型的调试或衍生计算。
Notice I did not need to declare any variables to hold intermediate results.
请注意,我不需要声明保存中间结果的变量。
In the present context it is enforced by selection of instance variables to represent computed intermediate and summary results.
在当前环境下,通过选择实例变量来表示计算得到的中间值和汇总结果,从而实施了该原则。
应用推荐