Willamette Mathematics Colloquium • Fall 2002 |

**A Quick Taste of Haskell (II)**

**Booleans and if expressions
**

> if 3 < 2 then "oops" else "hurray!" "hurray!" > (if 3 < 2 then (+) else (*)) 10 20 200

Willamette Mathematics Colloquium • Fall 2002 |

**A Quick Taste of Haskell (II)**

Willamette Mathematics Colloquium • Fall 2002 |

**A Quick Taste of Haskell (II)**

Willamette Mathematics Colloquium • Fall 2002 |

**A Quick Taste of Haskell (II)**

Willamette Mathematics Colloquium • Fall 2002 |

**A Quick Taste of Haskell (II)**

Willamette Mathematics Colloquium • Fall 2002 |

**A Quick Taste of Haskell (II)**

Willamette Mathematics Colloquium • Fall 2002 |

**A Quick Taste of Haskell (II)**

Willamette Mathematics Colloquium • Fall 2002 |

**A Quick Taste of Haskell (II)**

Booleans and `if` expressions

Infinite lists and lazy evaluation

Higher-order functions

Currying

The map functional

The fold functions

Strong, static typing

**More examples of Haskell in actions
**

•

•

some math-oriented examples from the Hugs distibution

•

type classes used to capture lattices abstractly (from the Hugs distibution)

•

a generic sorting application applied to a simple database

•

a flexible system for parsing and processing arithmetic expressions