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
597 B

  1. \ifger{Wir können auch \textbf{anonyme Funktionen} haben, was eigentlich nur bedeutet, dass die Funktion keinen Namen hat:}{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. \ifger{Wobei dies praktisch dasselbe ist wie:}{Although this is basically the same as:}
  8. \begin{haskellcode}
  9. f :: Int -> Int
  10. f x = x + 1
  11. \end{haskellcode}
  12. \ifger{Anonyme Funktionen werden für uns später sehr nützlich sein.}{Anonymous functions will come extremely handy later, you'll see.}