Mastering F#

A comprehensive and in-depth guide to writing functional programs using F#

Mastering F#

This ebook is included in a Mapt subscription
Alfonso García-Caro Núñez, Suhaib Fahad

1 customer reviews
A comprehensive and in-depth guide to writing functional programs using F#
$0.00
$35.99
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784393434
Paperback264 pages

Book Description

F# is a multi-paradigm programming language that encompasses object-oriented, imperative, and functional programming language properties. Now adopted in a wide range of application areas and is supported both by industry-leading companies who provide professional tools and by an active open community, F# is rapidly gaining popularity as it emerges in digital music advertising, creating music-focused ads for Spotify, Pandora, Shazam, and anywhere on the web.

This book will guide you through the basics and will then help you master F#. The book starts by explaining how to use F# with Visual Studio, file ordering, and the differences between F# and C# in terms of usage. It moves on to explain the functional core of F# such as data types, type declarations, immutability, strong type interference, pattern matching, records, F# data structures, sequence expressions, and lazy evaluation. Next, the book takes you through imperative and asynchronous programming, F# type providers, applications, and testing in F#. Finally, we look into using F# with distributed programming and using F# as a suitable language for data science. In short, this book will help you learn F# for real-world applications and increase your productivity with functional programming.

Table of Contents

Chapter 1: Getting Started in F#
Key features of F#
F# and integrated development environments
Basic values
Summary
Chapter 2: Functional Core with F#
F# primitive types
Immutability, type declarations, and strong type inference
Summary
Chapter 3: Data Structures in F#
F# Collections
Advanced data structures
Summary
Chapter 4: Imperative Programming in F#
Control structures
Object-oriented programming
Generics
Using LINQ in F#
Events
Observables
Interop with C#
Summary
Chapter 5: Asynchronous Programming
Asynchronous workflows in F#
Actor programming with MailboxProcessor
Reactive programming with async workflows
Summary
Chapter 6: Type Providers
SQL type provider
SQL entity type provider
OData type provider
Web service type provider
Data analysis with type providers
Query builder
Summary
Chapter 7: Web Programming in F#
ASP.NET Web API 2
Suave
WebSharper
Fable
Summary
Chapter 8: Application Development in F#
GitHub Electron
Using React components with Electron
npm start
Summary
Chapter 9: Testing in F#
Unit testing
Property-based testing
Summary
Chapter 10: Distributed Programming in F#
Actor Model
Akka.NET
Summary

What You Will Learn

  • Understand the basics of F# and organize F# source code with Visual Studio
  • Work with F# data structures and create functional data structures in F# interoperate with C#
  • Build and use asynchronous programming patterns with F#
  • Create and use type providers that help perform data analysis from within Visual Studio
  • Develop applications with pure F# code in WPF or ASP.NET MVC
  • Find out how to perform distributed programming with ServiceBus or ZeroMQ
  • Visualize data with charts, and work with Excel and R language Type providers

Authors

Table of Contents

Chapter 1: Getting Started in F#
Key features of F#
F# and integrated development environments
Basic values
Summary
Chapter 2: Functional Core with F#
F# primitive types
Immutability, type declarations, and strong type inference
Summary
Chapter 3: Data Structures in F#
F# Collections
Advanced data structures
Summary
Chapter 4: Imperative Programming in F#
Control structures
Object-oriented programming
Generics
Using LINQ in F#
Events
Observables
Interop with C#
Summary
Chapter 5: Asynchronous Programming
Asynchronous workflows in F#
Actor programming with MailboxProcessor
Reactive programming with async workflows
Summary
Chapter 6: Type Providers
SQL type provider
SQL entity type provider
OData type provider
Web service type provider
Data analysis with type providers
Query builder
Summary
Chapter 7: Web Programming in F#
ASP.NET Web API 2
Suave
WebSharper
Fable
Summary
Chapter 8: Application Development in F#
GitHub Electron
Using React components with Electron
npm start
Summary
Chapter 9: Testing in F#
Unit testing
Property-based testing
Summary
Chapter 10: Distributed Programming in F#
Actor Model
Akka.NET
Summary

Book Details

ISBN 139781784393434
Paperback264 pages
Read More
From 1 reviews

Read More Reviews