March 2018
Beginner
616 pages
16h 53m
English
After reading lesson 11, you’ll be able to
This lesson introduces one of the most powerful aspects of Haskell: its robust type system. The fundamentals of functional programming covered in the preceding lessons are shared by all functional programming languages from Lisp to Scala. It’s Haskell’s type system that sets it apart from other programming languages. Our introduction in this lesson starts with the basics of Haskell’s type system.
You need to create a simple function for taking the average of a list of numbers. The most obvious solution is to take the sum ...