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

  1. \ifger{Wie am Anfang dieses Kapitels bereits gesagt sind diese beiden Funktionen sehr ähnlich:}{As said in the beginning of this section, these two look pretty similar:}
  2. \begin{haskellcode}
  3. f :: Int -> Int -> Int
  4. f :: (Int, Int) -> Int
  5. \end{haskellcode}
  6. \ifger{Da wir jetzt wissen, dass man von der einen Form in die andere und zurück konvertieren kann, müssten wir dann nicht auch Funktionen dafür haben? Haben wir:}{And we now know that we can convert from one to another. Of course haskell also provides us two functions to do that, here we go:}
  7. \begin{haskellcode}
  8. curry :: ((a, b) -> c) -> a -> b -> c
  9. uncurry :: (a -> b -> c) -> (a, b) -> c
  10. \end{haskellcode}