Julian Ospald
преди 9 години
родител
ревизия
246f09871b
No known key found for this signature in database
GPG ключ ID: 220CD1C5BDEED020
променени са
1 файла, в които са
добавени 1 реда и са
изтрити 1 реда
-
VL2/content/VL2_more_ways_to_define_functions.tex
|
|
@@ -3,7 +3,7 @@ |
|
|
|
f :: Int -> Int |
|
|
|
f x = x + 1 |
|
|
|
\end{haskellcode} |
|
|
|
\ifger{Aber stellen wir uns vor, dass wir einige Hilfsfunktionen benötigen, die sehr spezifisch ist und eigentlich zur aktuellen Funktion gehört. In C würden wir diese vermutlich top-level deklarieren und \cinline{static} machen.}{But now imagine we need a helper function which is very specific to the current function. In C we would have to define this new helper function at top-level and would probably make it \cinline{static}.} |
|
|
|
\ifger{Aber stellen wir uns vor, dass wir eine Hilfsfunktion benötigen, die sehr spezifisch ist und eigentlich zur aktuellen Funktion gehört. In C würden wir diese vermutlich top-level deklarieren und \cinline{static} machen.}{But now imagine we need a helper function which is very specific to the current function. In C we would have to define this new helper function at top-level and would probably make it \cinline{static}.} |
|
|
|
\pause |
|
|
|
\vspace{\baselineskip} |
|
|
|
\\ |
|
|
|