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