Move section to next slide

This commit is contained in:
Julian Ospald 2015-04-20 20:12:09 +02:00
parent 4559b2f1d9
commit b43b9e2456
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
2 changed files with 8 additions and 8 deletions

View File

@ -12,11 +12,3 @@ NoError :: Int -> MaybeInt
> :t Error
Error :: String -> MaybeInt
\end{haskellcode}
\pause
And now we can do sanity checks:
\begin{haskellcode}
calcSomething :: Int -> MaybeInt
calcSomething x
| x < 100 = NoError (x * 5)
| otherwise = Error "Int out of range!"
\end{haskellcode}

View File

@ -1,3 +1,11 @@
And now we can do sanity checks:
\begin{haskellcode}
calcSomething :: Int -> MaybeInt
calcSomething x
| x < 100 = NoError (x * 5)
| otherwise = Error "Int out of range!"
\end{haskellcode}
\pause
And pattern match on it as well:
\begin{haskellcode}
addIntToList :: MaybeInt -> [Int]