Expert F# 4.0
Learn from F#'s inventor to become an expert in the latest version of this powerful programming language so you can seamlessly integrate functional, imperative, object-oriented, and query programming style flexibly and elegantly to solve any programming problem. Expert F# 4.0 will help you achi...
Autores principales: | , , |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Berkeley, CA :
Apress
2015.
|
Edición: | 4th ed. 2015. |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629908506719 |
Tabla de Contenidos:
- Contents at a Glance; Contents; About the Authors; About the Technical Reviewers; Acknowledgments; Chapter 1: Introduction; The Genesis of F#; About This Book; Who This Book Is For; Chapter 2: Your First F# Program: Getting Started with F#; Creating Your First F# Program; Documenting Code ; Using let; Understanding Types ; Calling Functions ; Lightweight Syntax ; Understanding Scope ; Using Data Structures ; Using Properties and the Dot-Notation ; Using Tuples ; Using Imperative Code ; Using Object-Oriented Libraries from F#; Using open to Access Namespaces and Modules
- Fetching a Web Page Getting and Using Packages ; Accessing External Data Using F# Packages; Starting a Web Server and Serving Data using F# Packages; Summary; Chapter 3: Introducing Functional Programming; Starting with Numbers and Strings; Some Simple Types and Literals; Arithmetic Conversions; Arithmetic Comparisons; Simple Strings ; Working with Conditionals: && and || ; Defining Recursive Functions; Lists ; Options; Getting Started with Pattern Matching ; Matching on Structured Values ; Guarding Rules and Combining Patterns ; Further Ways of Forming Patterns
- Introducing Function Values Using Function Values; Computing with Collection Functions ; Using Fluent Notation on Collections; Composing Functions with >>; Building Functions with Partial Application ; Using Local Functions ; Iterating with Functions; Abstracting Control with Functions; Using Object Methods as First-Class Functions; Some Common Uses of Function Values; Summary; Chapter 4: Introducing Imperative Programming; About Functional and Imperative Programming; Imperative Looping and Iterating; Simple for Loops ; Simple While Loops ; More Iteration Loops over Sequences
- Using Mutable Records Avoiding Aliasing ; Using Mutable let Bindings ; Hiding Mutable Data ; Working with Arrays ; Generating and Slicing Arrays; Two-Dimensional Arrays ; Introducing the Imperative .NET Collections ; Using Resizable Arrays ; Using Dictionaries ; Using Dictionary's TryGetValue ; Using Dictionaries with Compound Keys ; Some Other Mutable Data Structures ; Exceptions and Controlling Them; Catching Exceptions ; Using try . . . finally; Defining New Exception Types ; Having an Effect: Basic I/O; .NET I/O via Streams ; Some Other I/O-Related Types
- Using System. Console Combining Functional and Imperative Efficient Precomputation and Caching ; Precomputation and Partial Application ; Precomputation and Objects ; Memoizing Computations; Lazy Values ; Other Variations on Caching and Memoization ; Mutable Reference Cells ; Combining Functional and Imperative: Functional Programming with Side Effects; Consider Replacing Mutable Locals and Loops with Recursion ; Separating Pure Computation from Side-Effecting Computations ; Separating Mutable Data Structures ; Not All Side Effects Are Equal
- Avoid Combining Imperative Programming and Laziness