3rd CCSC Northwest Conference • Fall 2001 |

**Basic Haskell: higher-order functions**

**Currying
**

> :t take take :: Int -> [a] -> [a] > :t take 10 take 10 :: [a] -> [a] > :t take 10 ['a'..'z'] take 10 (enumFromTo 'a' 'z') :: [Char]

3rd CCSC Northwest Conference • Fall 2001 |

**Basic Haskell: higher-order functions**

3rd CCSC Northwest Conference • Fall 2001 |

**Basic Haskell: higher-order functions**

Currying

Infix operators versus prefix functions

**Operator sections
**

> (2^) 10 1024 > (^2) 10 100

3rd CCSC Northwest Conference • Fall 2001 |

**Basic Haskell: higher-order functions**

3rd CCSC Northwest Conference • Fall 2001 |

**Basic Haskell: higher-order functions**

3rd CCSC Northwest Conference • Fall 2001 |

**Basic Haskell: higher-order functions**

3rd CCSC Northwest Conference • Fall 2001 |

**Basic Haskell: higher-order functions**