我们系统可以在很大的能量范围内都是遍历状态的方案。
例如,您可以遍历项目,并基于当前游标位置更新其状态(参见清单5)。
For example, you can loop through projects and update their statuses based on the current cursor position (see Listing 5).
函数编程代表了下一个抽象阶段:将更加琐碎的细节如遍历、并发性和状态尽可能留给运行时处理。
Functional programming represents the next abstraction leap: ceding more mundane details such as iteration, concurrency, and state to the runtime as much as possible.
应用推荐