haskell-lectures/VL2/content/VL2_let.tex

6 lines
198 B
TeX
Raw Permalink Normal View History

2015-04-23 20:57:25 +00:00
\ifger{Ein ähnlicher Weg wäre über}{Another way which is very similar would be using} \hinline{let}:
\begin{haskellcode}
f :: Int -> Int
f x = let y p = x + p
in x + (y 2)
\end{haskellcode}