This is an excerpt from Manning's book Grokking Functional Programming. Login to get full access to this book.