函数式编程-将电脑运算视为函数的计算

函数式编程

函数式编程是种编程方式,它将电脑运算视为函数的计算。

而函数式编程是面向数学的抽象,将计算描述为一种表达式求值,一句话,函数式程序就是一个表达式。

面向计算?!

In computer sciencefunctional programming is a programming paradigm—a style of building the structure and elements of computer programs—that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data. It is a declarative programming paradigm, which means programming is done with expressions[1] or declarations[2] instead of statements.

原文地址:https://www.cnblogs.com/feng9exe/p/8652967.html