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.
|
- \ifger{Lösung:}{Solution:}
- \begin{haskellcode}
- addTwo :: [Int] -> [Int]
- addTwo [] = []
- addTwo (x:xs) = (x + 2) : addTwo xs
- \end{haskellcode}
- \pause
- \ifger{Jetzt wollen wir jedes Element quadrieren:}{Now we want to square every element:}
- \pause
- \begin{haskellcode}
- square :: [Int] -> [Int]
- square [] = []
- square (x:xs) = (x * x) : square xs
- \end{haskellcode}
- \pause
- \ifger{Jetzt wollen wir den Betrag jedes Elements:}{Now we want the absolute of every element:}
- \begin{haskellcode}
- absList :: [Int] -> [Int]
- absList [] = []
- absList (x:xs) = (abs x) : absList xs
- \end{haskellcode}
- \pause
- \ifger{Fällt etwas auf?}{Do you notice something?}
|