Ch.2: ML, a Functional Programming Language Plan
Chapter 2 ML, a Functional Programming Language
(Version of 24 September 2004)
- 1. Expressions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2
- 2. Value declarations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.13
- 3. Function declarations
. . . . . . . . . . . . . . . . . . . . . . . . . .
2.16
- 4. Type inference
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.18
- 5. Anonymous functions
. . . . . . . . . . . . . . . . . . . . . . . . . .
2.20
- 6. Specifications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.22
- 7. Tuples and records
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.24
- 8. Functions with several arguments/results . . . . . . . 2.26
- 9. Currying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.28
- 10. Pattern matching and case analysis
. . . . . . . . . . .
2.32
- 11. Local declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.36
- 12. New operators
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.39
- 13. Recursive functions
. . . . . . . . . . . . . . . . . . . . . . . . . . .
2.40
- 14. Side effects
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.41
- 15. Exception declarations
. . . . . . . . . . . . . . . . . . . . . . . . 2.42
- 16. Functional languages vs. imperative languages
2.46
c
- P. Flener/IT Dept/Uppsala Univ.
FP