diff --git a/3_Intermediate.org b/3_Intermediate.org index 7804eb1..bef07bc 100644 --- a/3_Intermediate.org +++ b/3_Intermediate.org @@ -550,6 +550,11 @@ guessNum nbTry nbToFound = do guessNum (nbTry + 1) nbToFound #+END_SRC +#+BEGIN_COMMENT +****** TODO Let's explain each line of the that function. +#+END_COMMENT + + The full program is then: #+BEGIN_SRC haskell :tangle code/guess_number.hs @@ -654,7 +659,7 @@ You found it in 5 tries. With that you have the ability to read stdin and print things. - - ~if τ then f1 else f2~ where =τ :: Bool= and the type of f1 and f2 must be the + - ~if τ then f1 else f2~ where =τ :: Bool= and the type of ~f1~ and ~f2~ must be the same. Generally this is denoted by: =:type f1 ~ :type f2= and that type will be the same as the entire ~if ‥ then ‥ else ‥~ expression. - you can compare things that can be compared with ~<~, ~<=~, ~>~, ~>=~, ~==~, ~/=~ (different).