Table of Contents

Binding and pattern matching

A binding binds a name or even several names with a function definition.

In Haskell, a binding is defined by symbol “=” whereas

  1. on the left hand side
    1. the function name and its parameters
    2. or a pattern is given,
  2. and on the right had side the definition of the function.

Binding with a) function name and parameter

Binding with b) pattern matching

Lists

Tuples

Algebraic data types