minor comments
This commit is contained in:
parent
d7bfee3e6d
commit
b3063945d2
1 changed files with 6 additions and 1 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue