Beginning F# 4.0
This book is a great foundation for exploring functional-first programming and its role in the future of application development. The best-selling introduction to F#, now thoroughly updated to version 4.0, will help you learn the language and explore its new features. F# 4.0 is a mature, open source...
Main Authors: | , |
---|---|
Format: | eBook |
Language: | Inglés |
Published: |
Berkeley, CA :
Apress
2016.
|
Edition: | 2nd ed. 2016. |
Series: | Expert's voice in .NET.
|
Subjects: | |
See on Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630198606719 |
Table of Contents:
- Contents at a Glance; Contents; About the Authors; About the Technical Reviewer; Acknowledgments; Foreword; Chapter 1: Getting Started; What Is Functional Programming?; Why Is Functional Programming Important?; What Is F#?; Who Is Using F#?; Who Is This Book For?; What's Next?; Chapter 2: How to Obtain, Install, and Use F#; Obtaining F# on Microsoft Windows; Obtaining F# on Apple OS X; Obtaining F# on Linux; The Examples in This Book; Summary; Chapter 3: Functional Programming; Literals; Anonymous Functions; Identifiers and let Bindings; Identifier Names; Scope; Capturing Identifiers
- The use BindingRecursion; Operators; Function Application; Partial Application of Functions; Pattern Matching; Control Flow; Lists; Pattern Matching Against Lists; List Comprehensions; Types and Type Inference; Defining Types; Tuple and Record Types; Union or Sum Types (Discriminated Unions); Type Definitions with Type Parameters; Recursive Type Definitions; Active Patterns; Complete Active Patterns; Partial Active Patterns; Units of Measure; Exceptions and Exception Handling; Lazy Evaluation; Summary; Chapter 4: Imperative Programming; The Unit Type; The Mutable Keyword
- Defining Mutable RecordsThe Reference Type; Arrays; Array Comprehensions; Array Slicing; Control Flow; Calling Static Methods and Properties from .NET Libraries; Using Objects and Instance Members from .NET Libraries; Using Indexers from .NET Libraries; Working with Events from .NET Libraries; Pattern Matching over .NET Types; The | > Operator; Summary; Chapter 5: Object-Oriented Programming; Records As Objects; F# Types with Members; Object Expressions; Defining Classes; Optional Parameters; Additional Constructors; Defining Interfaces; Implementing Interfaces; Classes and Inheritance
- Methods and InheritanceAccessing the Base Class; Properties and Indexers; Autoproperties; Overriding Methods from Non-F# Libraries; Abstract Classes; Classes and Static Methods; Casting; Type Tests; Defining Delegates; Structs; Enums; Summary; Chapter 6: Organizing, Annotating, and Quoting Code; Modules; Namespaces; Opening Namespaces and Modules; Giving Modules Aliases; Signature Files; Private and Internal let Bindings and Members; Module Scope; Module Execution; Optional Compilation; Comments; Doc Comments; Comments for Cross-Compilation; Custom Attributes; Quoted Code; Summary
- Chapter 7: The F# LibrariesThe Native F# Library FSharp.Core.dll; The FSharp.Core.Operators Module; Arithmetic Operators; Floating-Point Arithmetic Functions; Tuple Functions; The Conversion Functions; The Bitwise Or and And Operators; The FSharp.Reflection Module; Reflection Over Types; Reflection Over Values; The FSharp.Collections.Seq Module; The map and iter Functions; The concat Function; The fold Function; The exists and forall Functions; The filter, find, and tryFind Functions; The choose Function; The init and initInfinite Functions; The unfold Function; The cast Function
- The FSharp.Text.Printf Module