The "Thinking Functionally" Series
https://swlaschin.gitbooks.io/fsharpforfunandprofit/content/series/thinking-functionally.html
本系列文章将向您介绍函数式编程的基础知识——“函数式编程”的真正含义是什么,以及这种方法与面向对象或命令式编程有何不同。
Thinking Functionally: Introduction. 了解函数式编程的基础知识。
Mathematical functions. The impetus behind functional programming.
Function Values and Simple Values. Binding not assignment.
How types work with functions. Understanding the type notation.
Currying. Breaking multi-parameter functions into smaller one-parameter functions.
Partial application. Baking-in some of the parameters of a function.
Function associativity and composition. Building new functions from existing ones.
Defining functions. Lambdas and more.
Function signatures. A function signature can give you some idea of what it does.
Organizing functions. Nested functions and modules.
Attaching functions to types. Creating methods the F# way.
Worked example: A stack based calculator. Using combinators to build functionality.
Last updated