- ホーム
- > 洋書
- > 英文書
- > Science / Mathematics
Full Description
Helping readers to understand and learn how to use F#, this book covers basic algorithms and data structures using an innovative functional programming approach. The authors first use analogies of high school mathematics to cover code in order to make the code easy to understand. They then connect functional programming topics to important computer science areas and employ the popular .NET environment to give readers real-world skills and a solid programming platform. The text also includes an appendix on .NET programming using F# that contains additional information.
Contents
FROM MATHEMATICS TO PROGRAMMING Expression as a Basic Building Block Expressions in mathematics Calculating with numbers The type of an expression Calling operators and functions Value bindings Expressions without result Basic expressions Evaluating expressions Reusing and Parameterizing Expressions Writing reusable code Functions Parameterizing expressions Structuring code Understanding functions Example: drawing graph of a function Evaluating functions COMPUTER PROGRAMMING Composing Primitive Types into Data Thinking using functions Combining data types Tuples and records Discriminated unions Pattern matching Generic and Recursive Types Generic types Recursive types The list type Structural recursion Hiding Recursion Using Functions as Values Writing reusable functions Abstract data types Higher order functions Processing lists Understanding function types SOLVING ALGORITHMIC PROBLEMS Representing Functional Data Representing trees Representing mathematical expressions Arbitrary Recursion Recursive calculations Efficiency of algorithms Iteration Recursive algorithms Sorting lists Basic Algorithms Visualizing algorithms using .NET State machines Text search Graph algorithms