Lesson 2. Functions and functional programming

After reading lesson 2, you’ll be able to

  • Understand the general idea of functional programming
  • Define simple functions in Haskell
  • Declare variables in Haskell
  • Explain the benefits of functional programming

The first topic you need to understand when learning Haskell is, what is functional programming? Functional programming has a reputation for being a challenging topic to master. Although this is undoubtedly true, the foundations of functional programming are surprisingly straightforward. The first thing you need to learn is what it means to have a function in a functional programming language. You likely already have a good idea of what using a function means. In this lesson, you’ll see the ...

Get Get Programming with Haskell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.