CPSC 429/529: Functional Programming

 

Instructor: Carsten Schürmann
Department of Computer Science
Yale University
Time: MWF 9:30-10:20
Room: AKW200

  Home
  Schedule
  Handouts
  Assignments
  Projects
  Links
 
 

Lecture 7: Datatypes.

In this lecture we have seen that datatype are a very elegant way to allow the user to extend your programming language. A single datatype declaration contains all information of what are values, how are they typed. The expressions that manipulates user defined datatypes is called pattern matching -- A tremendously important operation in functional programming.

Code:

Code for Lecture 7

Further Reading:

Paul Hudak. The Haskell School of Expression. Cambridge University Press, 2000.

Previous lecture: Lecture 6
Next lecture: Lecture 8