Bladeren bron

Add negative example

stripped-german
Julian Ospald 9 jaren geleden
bovenliggende
commit
717c1b370f
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: 220CD1C5BDEED020
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. +3
    -0
      VL2/content/VL2_currying5.tex

+ 3
- 0
VL2/content/VL2_currying5.tex Bestand weergeven

@@ -12,5 +12,8 @@ Did you just notice the braces? They are \textbf{very} important! So, currying i
\begin{haskellcode}
f :: Int -> Int -> Int
f :: Int -> (Int -> Int)

-- but this is NOT the same
f :: (Int -> Int) -> Int
\end{haskellcode}
On the other hand function application is \emph{left}-associative, so \hinline{f 3 2} is just a shorthand of \hinline{(f 3) 2}. Makes sense?

Laden…
Annuleren
Opslaan