You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
350 B

  1. We can also have \textbf{anonymous functions} which just means the function doesn't have a name:
  2. \begin{haskellcode}
  3. f :: Int -> Int
  4. f x = (\y -> y + 1) x
  5. \end{haskellcode}
  6. \pause
  7. Although this is basically the same as:
  8. \begin{haskellcode}
  9. f :: Int -> Int
  10. f x = x + 1
  11. \end{haskellcode}
  12. Anonymous functions will come extremely handy later, you'll see.