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.
 
 
 

19 lines
965 B

  1. \ifger{D.h. mathematisch gesehen können wir schreiben:}{So in mathematical terms you can say:}\\
  2. $f : A_1 \times ... \times A_n \mapsto B$
  3. \vspace{\baselineskip}
  4. \\
  5. \ifger{wird zu}{gets modified into:}\\
  6. \pause
  7. $f' : A_1 \mapsto (A_2 \mapsto (\ ...\ (A_n \mapsto B)))$
  8. \vspace{\baselineskip}
  9. \\
  10. \pause
  11. \ifger{Die Klammern hier sind äußerst wichtig! Currying ist \emph{rechts}-assoziativ, d.h. die folgenden 2 Typsignaturen sind äquivalent:}{The braces are \textbf{very} important! It means currying is \emph{right}-associative and these these two signatures are equivalent:}
  12. \begin{haskellcode}
  13. f :: Int -> Int -> Int
  14. f :: Int -> (Int -> Int)
  15. -- but this is NOT the same
  16. f :: (Int -> Int) -> Int
  17. \end{haskellcode}
  18. \ifger{Auf der anderen Seite ist Funktionsanwendung \emph{links}-assoziativ, d.h.}{On the other hand function application is \emph{left}-associative, so} \hinline{f 3 2} \ifger{ist nur die Kurzform für}{is just a shorthand of} \hinline{(f 3) 2}.