소스 검색
Add negative example
stripped-german
Julian Ospald
9 년 전
No known key found for this signature in database
GPG 키 ID: 220CD1C5BDEED020
1개의 변경된 파일과
3개의 추가작업 그리고
0개의 파일을 삭제
-
VL2/content/VL2_currying5.tex
|
|
@@ -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? |