1
1
mirror of https://github.com/thma/WhyHaskellMatters.git synced 2024-07-14 16:50:26 +03:00

remove misplaced reference to even

This commit is contained in:
Thomas Mahler 2020-04-16 22:00:31 +02:00
parent adb738b335
commit 7d80675139

View File

@ -329,8 +329,7 @@ The Haskell code is straightforward: new ingredients are the `if ... then ... el
odd `odd` which is a predicate from the Haskell standard library
that returns `True` if an integral number is odd.
Now let's assume that we also need another function that computes the square for any odd number.
As you can imagine we can use the standard library predicate `even`:
Now let's assume that we also need another function that computes the square for any odd number:
```haskell
ifOddSquare :: Integer -> Integer