Skip to main content
O'Reilly home
    • Sign In
    • Try Now
    • Teams
      • For business
      • For government
      • For higher ed
    • Individuals
    • Features
      • All features
      • Certifications
      • Interactive learning
      • Live events
      • Answers
      • Insights reporting
    • Blog
    • Content sponsorship

Get Programming with Haskell by Will Kurt

Get full access to Get Programming with Haskell and 60K+ other titles, with free 10-day trial of O'Reilly.

There's also live online events, interactive content, certification prep materials, and more.

Start your free trial

List of Figures

Lesson 2. Functions and functional programming

Figure 2.1. Defining a simple function

Lesson 3. Lambda functions and lexical scope

Figure 3.1. The simple function rewritten as a lambda function

Figure 3.2. How sumSquareOrSquareSum works using a lambda function

Figure 3.3. The sumSquareOrSquareSum function rewritten to use a let expression

Figure 3.4. Lexical scope with add1, add2, and add3

Lesson 5. Closures and partial application

Figure 5.1. The genIfEven function lets you build ifEvenX functions simply.

Figure 5.2. ifEvenInc with closure

Figure 5.3. Parts of a URL

Figure 5.4. Capturing the host value in a closure

Figure 5.5. Visualizing partial application

Figure 5.6. The flipBinaryArgs function

Lesson 6. Lists

Figure ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.

Start your free trial

About O’Reilly

  • Teach/write/train
  • Careers
  • Community partners
  • Affiliate program
  • Submit an RFP
  • Diversity
  • O’Reilly for marketers

Support

  • Contact us
  • Newsletters
  • Privacy policy
facebook-logo linkedin-logo youtube-logo

International

  • Australia & New Zealand
  • Hong Kong & Taiwan
  • India
  • Indonesia
  • Japan

Download the O’Reilly App

Take O’Reilly with you and learn anywhere, anytime on your phone and tablet.

Apple app store Google play store

Watch on your big screen

View all O’Reilly videos, Superstream events, and Meet the Expert sessions on your home TV.

Roku Payers and TVs Amazon appstore

Do not sell my personal information

O'Reilly home

© 2022, O’Reilly Media, Inc. All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.

Terms of service • Privacy policy • Editorial independence

Don’t leave empty-handed

Get Mark Richards’s Software Architecture Patterns ebook to better understand how to design components—and how they should interact.

It’s yours, free.

Get it now
Cover of Software Architecture Patterns