Book Description
This is a book on the functional paradigm in general. We'll use the world's most popular functional programming language: JavaScript. Some may feel this is a poor choice as it's against the grain of the current culture which, at the moment, feels predominately imperative.
That said, typed functional languages will, without a doubt, be the best place to code in the style presented by this book. JavaScript will be our means of learning a paradigm, where you apply it is up to you. Luckily, the interfaces are mathematical and, as such, ubiquitous. You'll find yourself at home with Swiftz, Scalaz, Haskell, PureScript, and other mathematically inclined environments.
This open book is licensed under a Creative Commons License (CC BY-SA). You can download Professor Frisby's Mostly Adequate Guide to Functional Programming ebook for free in PDF format (2.4 MB).
Table of Contents
Chapter 1
What Ever Are We Doing?
Chapter 2
First Class Functions
Chapter 3
Pure Happiness with Pure Functions
Chapter 4
Currying
Chapter 5
Coding by Composing
Chapter 6
Example Application
Chapter 7
Hindley-Milner and Me
Chapter 8
Tupperware
Chapter 9
Monadic Onions
Chapter 10
Applicative Functors
Chapter 11
Transform Again, Naturally
Chapter 12
Traversing the Stone
Appendix A
Essential Functions Support
Appendix B
Algebraic Structures Support
Appendix C
Pointfree Utilities