这就是纯函数的一个例子,在后续部分会对此做详细介绍。
This is an example of a pure function, a concept I'll investigate further in a future installment.
相反的,用纯函数式语言编写的程序在并发自主的进程中通过传递消息来通信。
Instead, programs written in pure functional languages communicate by passing messages between concurrent, autonomous processes.
这就是为什么要使纯函数,即无副作用的函数,只能够调用其他纯函数想法的由来。
This is where the idea of making pure functions, functions without side-effects, able to call only other pure functions.
应用推荐