2. Starting Out

Learn how to make lists and tuples. We also learn the basic list manipulation commands.

  • Create a list: [5..13] or [5,10..100] or [ n^2 | n<-[1..100], even n]
  • Create a tuple: (5,12)
  • Key to remember: head, tail, init, last, :, ++

See the summary for more details about the contents of the chapter.

Resources


Chapter 2 Reading Guide

Haskell CW II.2

Project Euler problems.

Haskell CW II.3a

Tiny pieces to help you get better at programming in Haskell.

Haskell CW II.3b

Learning questions to help with II.3.

Haskell CW II.4

Intro to functions and signatures.

Haskell CW II.5

Haskell CW II.6

Introduction to pattern matching in functions.

Haskell CW II.B1

Haskell CW II.B2

Haskell HW 2

Graph a function, is a point on a line, get the numbers more than 100, break up a list, find the nearest point.

Chapter 2 Test

A short test of some Chapter 2 skills.

Ch 02 Quiz 1

Ch 02 Quiz 4

A simple list processing fizz-buzz level quiz. (Recursion.)

Chapter 2 Summary

Useful highlights from the chapter.

Last modified August 18, 2023: 2022-2023 End State (7352e87)