minor comments

This commit is contained in:
Yann Esposito (Yogsototh) 2018-06-22 00:15:52 +02:00
parent d7bfee3e6d
commit b3063945d2
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -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).