MapReduce的简化理解
MapReduce:增加了分布式支持的计算函数.
用户只要写好Map()和Reduce()函数,由客户端调用,即可实现分布式计算.
函数式编程概念的优点
函数是函数式编程的基本单位,函数几乎被用于一切,包括最简单的计算,甚至变量都由计算取代。
函数值唯一地由其参数值所确定
纯函数式的程序没有变量和副作用
变量是不能更改的,所有变量只能被赋值一次
不必考虑函数调用顺序
函数式程序无需任何修改即可并行执行。不用担心死锁和临界区