- Added the :i command, as i feel that it is as useful as :t.
- Added another example for :t, hopefully showcasing it's flexibility
- For consistency, changed the name of (.) from function to operator
(as is already the case with ($)), and added a short remark in the
GHCi section that (most) operators are also functions.
- Use a finite list, as infinite lists are not introduced yet
- Use a list starting from 1 instead of 0, to make it obvious that
the element returned comes from the list (and is not the second
argument to !!).
I just noted that the example claiming that (add 10) is the same as (+10) was wrong. (A detail - it should be (10+) to match the argument order.) Then I just continued down making a few similar fixes and terminology updates.
/Patrik
PS. I've been teaching [Advanced Functional Programming](http://www.cse.chalmers.se/edu/course/afp/) (in Haskell) for a few years at Chalmers.
- The bottom of the "List and Tuples" section may mislead the reader
into thinking that the `fst` and `snd` functions can be applied to any
tuple; it's worth mentioning that those functions only apply to pairs.
- The example demonstrating the use of the function-application operator
(`$`) in combination with the function-composition operator (`.`) seems a
bit contrived. For completeness, I've added an example that uses `$` alone.
- "If statements" and "case statements" are actually expressions, in
Haskell; I've replaced all occurences of the word "statement" appearing in
that context by the word "expression".
- Minor wording improvement (replaced "because" by a semicolon).
Since all the functions work with lists, calling them arrays is inaccurate. This commit also updates `myMap` function so that it works on an empty list as well as resolves ambiguity about `x` from comment.